Displaying 2 results from an estimated 2 matches for "assert_redirect_url".
2005 Dec 14
1
Problems with testing - error posting to other controller
...sion[:user_id], like:
def login (login="bob", password="atest")
post "user/login", :user => { :login => login, :password => password
}
assert_response 302 # redirect
assert_session_has :user_id
assert_equal 1000001, session[:user_id]
assert_redirect_url "http://#{@request.host}/user/home"
end
and added it to test_helper.rb . In my ad_controller_test I call it like
login(), but this throws an error. In my test.log it get the following
Processing AdController#user/login (for 0.0.0.0 at 2005-12-14 20:48:31)
[POST]
Parameters: {"...
2005 May 18
10
Salted Login Generator issues
Hello all,
I''ve just installed and begun to integrate the salted login generator.
So far I''m very impressed, though I''ve hit a few snags along the way.
Unfortunately, I''ve met the first one that I haven''t been able to
resolve on my own.
When I hit the login action, I get errors in my log files. The specific
error with trace is included below.