Displaying 1 result from an estimated 1 matches for "test_login_required".
2006 Jun 17
3
What is this failure trying to tell me?
....
post :login, :user=>{ :login => "bob", :password => "test"}
assert_response :redirect
assert_session_has :user
assert_redirected_to :action => ''welcome''
Here is the failure I''m getting when I run my tests.
2) Failure:
test_login_required(UserControllerTest)
[test/functional/user_controller_test.rb:122]:
response is not a redirection to all of the options supplied
(redirection is <"http://test.host/user/welcome">), difference:
<{:controller=>"user"}>
assert_redirected_to :action => ''...