diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-02-27 17:41:59 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-02-27 17:41:59 -0500 |
commit | f3f17dcd9755020276062caae7c0677eff88cb2f (patch) | |
tree | 36018148c3335f708269075f41c8892a62d0c85b /test/controllers/games_controller_test.rb | |
parent | de40ec53e8b80d8d880214183f19ea93172a0026 (diff) |
Added the Games Attributes stuff.
Diffstat (limited to 'test/controllers/games_controller_test.rb')
-rw-r--r-- | test/controllers/games_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/games_controller_test.rb b/test/controllers/games_controller_test.rb index 420758e..95c3145 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: { name: @game.name } + post :create, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match } 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: { name: @game.name } + patch :update, id: @game, game: { name: @game.name, players_per_team: @game.players_per_team, randomized_teams: @game.randomized_teams, set_rounds: @game.set_rounds, teams_per_match: @game.teams_per_match } assert_redirected_to game_path(assigns(:game)) end |