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