Agnieszka Figiel
2006-Dec-21 10:36 UTC
getting past http authentication in controller tests
Hello, I have problems with running tests of a webservices controller, which is protected with simple_http_auth. I noticed this message in reply to a similar problem: http://www.ruby-forum.com/topic/71242#98757 which suggests using integration tests instead of functional. However, so far I couldn''t find an example of integration tests of webservices and I''m also not sure why we need to use them in this case, I would think the only thing that''s needed to test the http auth would be setting proper request headers in a simple functional test, but in fact it doesn''t work. I''d be grateful for an explanation and hopefully some hint on how to use the ''invoke'' method in an integration test to pass the http authentication headers. Thank you! -- Agnieszka Figiel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---