diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 03:49:54 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 03:49:54 -0400 |
commit | 4f523f424cb41733c19754c5d4b538053d86ab74 (patch) | |
tree | 55736af3a1ffe6494eb978be17f348b7e899630f /test | |
parent | a3a72a54cc5742ffe82611fb87b3445c251d0676 (diff) | |
parent | 4c5c8b978d6bc70811e95e6da5afd06ec7a2e27e (diff) |
Merge branch 'clean2'
Conflicts:
app/controllers/matches_controller.rb
app/views/matches/index.html.erb
app/views/matches/show.html.erb
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/matches_controller_test.rb | 4 | ||||
-rw-r--r-- | test/fixtures/matches.yml | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/test/controllers/matches_controller_test.rb b/test/controllers/matches_controller_test.rb index d4ac1ed..69cbff5 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: { 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: { status: @match.status, 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: { 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: { status: @match.status, tournament_stage_id: @match.tournament_stage_id, winner_id: @match.winner_id } assert_redirected_to match_path(assigns(:match)) end diff --git a/test/fixtures/matches.yml b/test/fixtures/matches.yml index 4213238..2a995c7 100644 --- a/test/fixtures/matches.yml +++ b/test/fixtures/matches.yml @@ -4,12 +4,8 @@ one: status: 1 tournament_stage_id: winner_id: - remote_id: MyText - submitted_peer_evaluations: 1 two: status: 1 tournament_stage_id: winner_id: - remote_id: MyText - submitted_peer_evaluations: 1 |