I don’t need to do functional testing of restful_authentication, but I
do need to do functional testing of controllers that require
Restful_authentication sets up a session and a current_user but sessions
aren’t available in functional testing. So my integration tests run just
fine but my functional tests freak out. I have two issues that I need
I can’t login and follow the redirect because follow_redirect has been
taken out of Rails 2.2.2 on the assumption that it belongs in
I’m accessing @current_user in my views, to test for some property of
the user and display certain things on the page iff the user has that
I’m also using role_requirement, and when I have require_role set in
my controllers, nothing works because there’s no session, and hence no
current_user to check the role of.
How should I set things up in this case?