Permalink
Browse files

Remove incorrect assert_recognizes example

  • Loading branch information...
1 parent af4fab7 commit 48fe62ee571002bdee694a5722285d4055a5e695 @pixeltrix pixeltrix committed Feb 14, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −6 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+.

0 comments on commit 48fe62e

Please sign in to comment.