I have this assertion in my tests:
assert_redirected_to :controller => ‘user’, :action => ‘change_password’
It fails with:
response is not a redirection to all of the options supplied
(redirection is <“http://test.host/user/change_password”>),
difference: <{:controller=>“user”}>
The redirection was:
redirect_to ‘/user/change_password’
Anyone know why this happens?
Greetings,
Pedro.
Pedro, I’ve seen the same problem. Did you ever find an answer?
Anyone in the community care to way in?
On 7/1/06, Brittain [email protected] wrote:
Pedro, I’ve seen the same problem. Did you ever find an answer?
No, not yet. I just commented out the test for now…
Pedro.
Try doing redirect_to :controller => “user”, :action =>
“change_password” maybe?
On 7/2/06, Chris C. [email protected] wrote:
Try doing redirect_to :controller => “user”, :action =>
“change_password” maybe?
Yes, that works, but doesn’t do what I want. I’m saving request_uri in
the session and then recalling it with redirect_to. It’s not a fixed
redirect.
Pedro.