summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 17:02:10 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 17:02:10 -0500
commitde40ec53e8b80d8d880214183f19ea93172a0026 (patch)
treecb25d099fa0252d2b43db850f21c69ccd03907e3 /test/controllers
parent3a7b14f4a51c0fdb8b71720f361a0a8ccf080325 (diff)
give tournaments a game type
Diffstat (limited to 'test/controllers')
-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