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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to