diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-06 17:25:40 -0500 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-06 17:25:40 -0500 |
commit | f5d36fc67d1994b7cc1ce02e7be2767ffcb47857 (patch) | |
tree | 03afe3bea27d2963525d7509690ec6b39e5648f9 /test/controllers/teams_controller_test.rb | |
parent | d0545c2820d101a98b3c895cf6e3691145a62f3c (diff) |
new generate
Diffstat (limited to 'test/controllers/teams_controller_test.rb')
-rw-r--r-- | test/controllers/teams_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/teams_controller_test.rb b/test/controllers/teams_controller_test.rb index 8bf60be..52f7c17 100644 --- a/test/controllers/teams_controller_test.rb +++ b/test/controllers/teams_controller_test.rb @@ -18,7 +18,7 @@ class TeamsControllerTest < ActionController::TestCase test "should create team" do assert_difference('Team.count') do - post :create, team: { } + post :create, team: { match_id: @team.match_id } end assert_redirected_to team_path(assigns(:team)) @@ -35,7 +35,7 @@ class TeamsControllerTest < ActionController::TestCase end test "should update team" do - patch :update, id: @team, team: { } + patch :update, id: @team, team: { match_id: @team.match_id } assert_redirected_to team_path(assigns(:team)) end |