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 F.