summaryrefslogtreecommitdiff
path: root/test/controllers/tournaments_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/tournaments_controller_test.rb')
-rw-r--r--test/controllers/tournaments_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/tournaments_controller_test.rb b/test/controllers/tournaments_controller_test.rb
index 9363bdf..bdbbfac 100644
--- a/test/controllers/tournaments_controller_test.rb
+++ b/test/controllers/tournaments_controller_test.rb
@@ -18,7 +18,7 @@ class TournamentsControllerTest < ActionController::TestCase
test "should create tournament" do
assert_difference('Tournament.count') do
- post :create, tournament: { }
+ post :create, tournament: { game_id: @tournament.game_id }
end
assert_redirected_to tournament_path(assigns(:tournament))
@@ -35,7 +35,7 @@ class TournamentsControllerTest < ActionController::TestCase
end
test "should update tournament" do
- patch :update, id: @tournament, tournament: { }
+ patch :update, id: @tournament, tournament: { game_id: @tournament.game_id }
assert_redirected_to tournament_path(assigns(:tournament))
end