summaryrefslogtreecommitdiff
path: root/test/controllers
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-23 22:53:04 -0400
committernfoy <nfoy@purdue.edu>2014-04-23 22:53:04 -0400
commita6f801b7f5a2b9ca1b61ecc305a31f76be8c8238 (patch)
tree6f9fe728220b8d7d08e9da3ac3ac48f3a3128d5b /test/controllers
parent107f1f65c93cbe118a69e76514327c4862c7d51d (diff)
parent41a93fad32677e3f351c0e16f0c704cbfbc5404e (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'test/controllers')
-rw-r--r--test/controllers/games_controller_test.rb4
-rw-r--r--test/controllers/static_controller_test.rb7
2 files changed, 2 insertions, 9 deletions
diff --git a/test/controllers/games_controller_test.rb b/test/controllers/games_controller_test.rb
index f55a226..be97aa0 100644
--- a/test/controllers/games_controller_test.rb
+++ b/test/controllers/games_controller_test.rb
@@ -18,7 +18,7 @@ class GamesControllerTest < ActionController::TestCase
test "should create game" do
assert_difference('Game.count') do
- post :create, game: { max_players_per_team: @game.max_players_per_team, max_teams_per_match: @game.max_teams_per_match, min_players_per_team: @game.min_players_per_team, min_teams_per_match: @game.min_teams_per_match, name: @game.name, randomized_teams: @game.randomized_teams, sampling_method: @game.sampling_method, set_rounds: @game.set_rounds }
+ post :create, game: { max_players_per_team: @game.max_players_per_team, max_teams_per_match: @game.max_teams_per_match, min_players_per_team: @game.min_players_per_team, min_teams_per_match: @game.min_teams_per_match, name: @game.name, parent_id: @game.parent_id, randomized_teams: @game.randomized_teams, sampling_method: @game.sampling_method, set_rounds: @game.set_rounds }
end
assert_redirected_to game_path(assigns(:game))
@@ -35,7 +35,7 @@ class GamesControllerTest < ActionController::TestCase
end
test "should update game" do
- patch :update, id: @game, game: { max_players_per_team: @game.max_players_per_team, max_teams_per_match: @game.max_teams_per_match, min_players_per_team: @game.min_players_per_team, min_teams_per_match: @game.min_teams_per_match, name: @game.name, randomized_teams: @game.randomized_teams, sampling_method: @game.sampling_method, set_rounds: @game.set_rounds }
+ patch :update, id: @game, game: { max_players_per_team: @game.max_players_per_team, max_teams_per_match: @game.max_teams_per_match, min_players_per_team: @game.min_players_per_team, min_teams_per_match: @game.min_teams_per_match, name: @game.name, parent_id: @game.parent_id, randomized_teams: @game.randomized_teams, sampling_method: @game.sampling_method, set_rounds: @game.set_rounds }
assert_redirected_to game_path(assigns(:game))
end
diff --git a/test/controllers/static_controller_test.rb b/test/controllers/static_controller_test.rb
deleted file mode 100644
index e62ae2a..0000000
--- a/test/controllers/static_controller_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class StaticControllerTest < ActionController::TestCase
- # test "the truth" do
- # assert true
- # end
-end