Remove incorrect assert_recognizes example

This commit is contained in:
Andrew White
2011-02-14 00:09:05 +00:00
parent af4fab7d2e
commit 48fe62ee57

View File

@@ -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+.