提交 5a6f30ff 编写于 作者: S Sytse Sijbrandij

Make it clear that you can also pass a full url to assert_routing.

上级 11d488dd
......@@ -37,6 +37,9 @@ module RoutingAssertions
#
# # Test a custom route
# assert_recognizes({:controller => 'items', :action => 'show', :id => '1'}, 'view/item1')
#
# # Path can be a full url (with ://) to test routing based on constrains such as subdomain or host
# assert_routing 'http://api.example.com/', :controller => 'api', :action => 'index'
def assert_recognizes(expected_options, path, extras={}, message=nil)
request = recognized_request_for(path, extras)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册