aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJonathan Lim <snowblink@gmail.com>2009-11-30 12:20:35 +0000
committerJonathan Lim <snowblink@gmail.com>2009-11-30 12:20:35 +0000
commita5cf2a95f4a15b43cb6481a2483890e4666f0c87 (patch)
tree5a21e55a818b1dc3363c6c09d7c831654cb2cd94 /actionpack
parent5ecee1cd54c8edb98e951826d23ad6ac93428cbd (diff)
downloadrails-a5cf2a95f4a15b43cb6481a2483890e4666f0c87.tar.gz
rails-a5cf2a95f4a15b43cb6481a2483890e4666f0c87.tar.bz2
rails-a5cf2a95f4a15b43cb6481a2483890e4666f0c87.zip
assert_routing with a hash as first argument, needs to enclose arguments in brackets
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/routing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
index ce221df2cb..dcf5d55e53 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -114,7 +114,7 @@ module ActionDispatch
# assert_routing 'controller/action/9', {:id => "9", :item => "square"}, {:controller => "controller", :action => "action"}, {}, {:item => "square"}
#
# # Tests a route with a HTTP method
- # assert_routing { :method => 'put', :path => '/product/321' }, { :controller => "product", :action => "update", :id => "321" }
+ # assert_routing({ :method => 'put', :path => '/product/321' }, { :controller => "product", :action => "update", :id => "321" })
def assert_routing(path, options, defaults={}, extras={}, message=nil)
assert_recognizes(options, path, extras, message)