Displaying 1 result from an estimated 1 matches for "debug_param".
Did you mean:
debug_params
2006 May 03
0
Accessing the params hash in a functional test not working
...ost :login, :user => { :email => "bob@example.com", :password => "test"
}
assert_session_has :user
assert_equal @bob, @response.session[:user]
assert_redirected_to "/bogus/location"
end
And the login action looks like:
def login
session[:debug_params] = params
case @request.method
when :post
if session[:user] = User.authenticate(params[:user_email],
params[:user_password])
flash[:notice] = "You are now logged in as
"+session[:user].fullname
redirect_back_or_default :action => "welcome"...