Skip to content

Commit

Permalink
Update room request feature spec
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jul 20, 2017
1 parent 31f780c commit daa0f83
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/features/room_requests_spec.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
RSpec.feature 'Room requests' do
let(:user) { create(:user) }
let(:room) { create(:room, :with_old_setup) }
let!(:room) { create(:room) }
let(:room_user) { create(:user, room: room) }

background do
sign_in user
visit rooms_path
end

scenario 'User joins room' do
room_user = room.users.first

visit rooms_path
within "#room-#{room.id}" do
click_on 'Send request to join'
end
Expand Down

0 comments on commit daa0f83

Please sign in to comment.