diff options
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/routing.textile | 2 |
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 |