Testing Rails 2.0 Http Authentication

I am able to check that admin pages are protected. Does anyone know
how to login using http authentication in functional tests so that all
scenarios for successful login can be tested? TIA.