summaryrefslogtreecommitdiff
path: root/test/controllers/matches_controller_test.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-02-18 20:42:51 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-02-18 20:42:51 -0500
commit96b97d691f6889004c38bef15411bc27e448fda1 (patch)
tree7105a54b40fc11ca38a67ff2f520cc977532da44 /test/controllers/matches_controller_test.rb
parent1b95d76d2bded709f512ccdca851388b8691708f (diff)
Changes to 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 353ff4b..629622b 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: { }
+ post :create, match: { tournament: @match.tournament }
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: { }
+ patch :update, id: @match, match: { tournament: @match.tournament }
assert_redirected_to match_path(assigns(:match))
end