aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
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 /railties/guides/source/routing.textile
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 'railties/guides/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index 355f385d49..79cd39d066 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -891,7 +891,7 @@ h5. The +assert_routing+ Assertion
The +assert_routing+ assertion checks the route both ways: it tests that the path generates the options, and that the options generate the path. Thus, it combines the functions of +assert_generates+ and +assert_recognizes+.
<ruby>
-assert_routing { :path => "photos", :method => :post }, { :controller => "photos", :action => "create" }
+assert_routing({ :path => "photos", :method => :post }, { :controller => "photos", :action => "create" })
</ruby>
h3. Changelog