Hello, does anybody know how can I test a controller in a Rails app (using the Rails testing framework) that requires HTTP authentication, and redirects after that? With integration (I mean, using UserFlowsTest < ActionController::IntegrationTest) tests I know I can follow_redirect! , but I don''t know how to do the authentication. With inheriting the test class from ActionController::TestCase won''t give me the follow_redirect! method. You see, I know how to authenticate in this case, but can''t folllow redirections. I found some interesting links, but they weren''t enough: http://flip.netzbeben.de/2008/06/functional-test-for-http-authentication-in-rails-2/ http://tek-zappeln.blogspot.com/2009/04/rails-2-functional-tests-with-http.html Any help would be great! Regards -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.