summaryrefslogtreecommitdiff
path: root/test/controllers/matches_controller_test.rb
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
commitcd1fabe40ca4d290df33a2590f3a1f2072103972 (patch)
tree98afd236e1d14e892602304e739fc65d450a43fd /test/controllers/matches_controller_test.rb
parentc14d0327a631a4321464c7c1e250d75458e13f49 (diff)
fix datatype names in 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 629622b..75c9dcf 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: { tournament: @match.tournament }
+ post :create, match: { tournament_id: @match.tournament_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: { tournament: @match.tournament }
+ patch :update, id: @match, match: { tournament_id: @match.tournament_id }
assert_redirected_to match_path(assigns(:match))
end