[Rails] Strange behaviour from assert_redirected_to

Pedro Côrte-Real pedrocr at gmail.com
Fri Jun 30 10:50:35 GMT 2006


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.


More information about the Rails mailing list