Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove incorrect assert_recognizes example

  • Loading branch information...
commit 48fe62ee571002bdee694a5722285d4055a5e695 1 parent af4fab7
@pixeltrix pixeltrix authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 railties/guides/source/routing.textile
View
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+.
Please sign in to comment.
Something went wrong with that request. Please try again.