Displaying 1 result from an estimated 1 matches for "omglolrofl".
Did you mean:
omglolrofls
2007 Jun 01
1
redirect_to a relative path
In a controller spec, doing something like:
response.redirect_url.should == omglolsrofls_path
... fails, as so:
expected "/omglolrofls", got "http://test.host/omglolrofls" (using ==)
You can see that the http://test.host is prepended to the path.
My controller is indeed redirecting to the omglolrofls path, and not
the url.
Is this expected ?
Oh... and that''s an arbitrary controller name if you were won...