提交 48fe62ee 编写于 作者: A Andrew White

Remove incorrect assert_recognizes example

上级 af4fab7d
......@@ -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+.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册