From 701475e7633360c9b5ead189e20435ed2d1eb247 Mon Sep 17 00:00:00 2001 From: Greg Wilbur Date: Sun, 17 May 2015 14:18:42 -0400 Subject: [PATCH] fixed 2 tests --- test/controllers/games_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/games_controller_test.rb b/test/controllers/games_controller_test.rb index eecd135..7407a3e 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: { } + post :create, game: { :name => 'foo', :state => '' } 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: { } + patch :update, id: @game, game: { :name => 'foo', :state => '' } assert_redirected_to game_path(assigns(:game)) end