Forum: Ruby on Rails Setting headers in TestRequest

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B609dc8cf73079db56b3979205e37753?d=identicon&s=25 Rod (Guest)
on 2007-04-06 19:18
(Received via mailing list)
Hi.  I'm using HTTP Basic auth for some of my REST interfaces, so I
want to run tests setting the HTTP AUTHORIZATION header.  But I can't
find a way to do it in the functional test.  I can see the response
headers in @response.headers, but there's no analogous hash in

Any hints?

Also, I can't find any API documentation for
ActionController::TestRequest -- anybody know where that's hiding?

This topic is locked and can not be replied to.