diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2011-02-14 00:09:05 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2011-02-14 00:09:05 +0000 |
commit | 48fe62ee571002bdee694a5722285d4055a5e695 (patch) | |
tree | 52e9d5fe5843363f58cbd0b8b067794502c67d84 /railties | |
parent | af4fab7d2ed5568b5c998ff5b02c907da4f3a357 (diff) | |
download | rails-48fe62ee571002bdee694a5722285d4055a5e695.tar.gz rails-48fe62ee571002bdee694a5722285d4055a5e695.tar.bz2 rails-48fe62ee571002bdee694a5722285d4055a5e695.zip |
Remove incorrect assert_recognizes example
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/routing.textile | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 1d81c8f95b..28a207c436 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -852,12 +852,6 @@ You can supply a +:method+ argument to specify the HTTP verb: assert_recognizes({ :controller => "photos", :action => "create" }, { :path => "photos", :method => :post }) </ruby> -You can also use the resourceful helpers to test recognition of a RESTful route: - -<ruby> -assert_recognizes new_photo_url, { :path => "photos", :method => :post } -</ruby> - 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+. |