Skip to content

Commit

Permalink
Add spec for resetting room
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jul 29, 2017
1 parent 3477833 commit 1b52ad1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/features/rooms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@
expect(page).not_to have_content destroyed_room_activity.name
end
end

scenario 'User resetts rooms progress' do
click_on 'Reset room progress'
click_on 'Reset'

expect(room.activities.count).to eq 0
end
end

context 'leaving' do
Expand Down

0 comments on commit 1b52ad1

Please sign in to comment.