Fix test game path
This commit is contained in:
parent
bef5af7c5a
commit
abf0bf4b4b
@ -24,7 +24,7 @@ feature 'Join a game', type: :feature, js: true do
|
||||
@game = FactoryGirl.create :game
|
||||
@user = FactoryGirl.create :user
|
||||
login_as(@user, scope: :user)
|
||||
visit game_path @game
|
||||
visit table_path @game.table
|
||||
click_button "Sit", match: :first
|
||||
expect(page).to have_content @user.display_name
|
||||
end
|
||||
@ -37,7 +37,7 @@ feature 'Join a game', type: :feature, js: true do
|
||||
@game = FactoryGirl.create :game
|
||||
@user = FactoryGirl.create :user
|
||||
login_as(@user, scope: :user)
|
||||
visit game_path @game
|
||||
visit table_path @game.table
|
||||
click_button "Sit", match: :first
|
||||
expect(page).to have_content @user.display_name
|
||||
click_button "Sit", match: :first
|
||||
|
||||
@ -5,7 +5,7 @@ Warden.test_mode!
|
||||
feature 'Play a hand', type: :feature, js: true do
|
||||
before(:each) do
|
||||
@game = setup_visitor_game
|
||||
visit game_path @game
|
||||
visit table_path @game.table
|
||||
click_button "Sit", match: :first
|
||||
#TODO: Fix race condition
|
||||
sleep 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user