summaryrefslogtreecommitdiff
path: root/test/controllers/matches_controller_test.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-22 15:56:06 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-22 15:56:06 -0400
commit45c5d311492ef98ed702beaf043d289a705a5e0b (patch)
treec0bea2e65d21127a1fd34a245b5bb7fc47123bb0 /test/controllers/matches_controller_test.rb
parent9d226fcd27b6c2470edf718ad36a262348891470 (diff)
parentc927cd7c043d982f8ffb51c8a78288d88d825d82 (diff)
Merge branch 'clean2'
Conflicts: app/models/team.rb app/views/matches/index.html.erb app/views/matches/show.html.erb
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 033704e..d4ac1ed 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, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_stage_id: @match.tournament_stage_id, winner_id: @match.winner_id }
+ post :create, match: { remote_id: @match.remote_id, status: @match.status, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_stage_id: @match.tournament_stage_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, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_stage_id: @match.tournament_stage_id, winner_id: @match.winner_id }
+ patch :update, id: @match, match: { remote_id: @match.remote_id, status: @match.status, submitted_peer_evaluations: @match.submitted_peer_evaluations, tournament_stage_id: @match.tournament_stage_id, winner_id: @match.winner_id }
assert_redirected_to match_path(assigns(:match))
end