I am trying to write a test case of Rails' routing to redirect to another site.
For example:
get "foo/:id",redirect("http://othersite.com/foo/%{id}",:status => 301)
The following attempt produced errors:
assert_routing "foo/123","http://othersite.com/foo/123"