From 93d121238b1b69f2ae695f1ed632e7d704b1f8e3 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Tue, 2 Nov 2021 19:52:58 -0700 Subject: [PATCH] Fix test game path --- spec/features/users/user_join_game_spec.rb | 4 ++-- spec/features/visitor_plays_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/users/user_join_game_spec.rb b/spec/features/users/user_join_game_spec.rb index 86af26b..43d4a97 100644 --- a/spec/features/users/user_join_game_spec.rb +++ b/spec/features/users/user_join_game_spec.rb @@ -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 diff --git a/spec/features/visitor_plays_spec.rb b/spec/features/visitor_plays_spec.rb index d34c3af..b364454 100644 --- a/spec/features/visitor_plays_spec.rb +++ b/spec/features/visitor_plays_spec.rb @@ -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