summaryrefslogtreecommitdiff
path: root/test/controllers/matches_controller_test.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-07 04:16:18 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-07 04:16:18 -0400
commitc3af0f5b51dfe842ad9e4c5ea93e202e26e818ac (patch)
treec22f1cc916d98c7271635ecae48b62e8ea128012 /test/controllers/matches_controller_test.rb
parent8e7ca204ab9a702be483621f4fe9df68b03ffec0 (diff)
Ran generate.sh
Diffstat (limited to 'test/controllers/matches_controller_test.rb')
-rw-r--r--test/controllers/matches_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/matches_controller_test.rb b/test/controllers/matches_controller_test.rb
index 8782b2c..aca7008 100644
--- a/test/controllers/matches_controller_test.rb
+++ b/test/controllers/matches_controller_test.rb
@@ -18,7 +18,7 @@ class MatchesControllerTest < ActionController::TestCase
test "should create match" do
assert_difference('Match.count') do
- post :create, match: { name: @match.name, remote_id: @match.remote_id, status: @match.status, tournament_id: @match.tournament_id, winner_id: @match.winner_id }
+ post :create, match: { name: @match.name, remote_id: @match.remote_id, status: @match.status, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_id: @match.tournament_id, winner_id: @match.winner_id }
end
assert_redirected_to match_path(assigns(:match))
@@ -35,7 +35,7 @@ class MatchesControllerTest < ActionController::TestCase
end
test "should update match" do
- patch :update, id: @match, match: { name: @match.name, remote_id: @match.remote_id, status: @match.status, tournament_id: @match.tournament_id, winner_id: @match.winner_id }
+ patch :update, id: @match, match: { name: @match.name, remote_id: @match.remote_id, status: @match.status, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_id: @match.tournament_id, winner_id: @match.winner_id }
assert_redirected_to match_path(assigns(:match))
end