Testing controller

Hi Jim Burgess

    You can do same also like

user
@request.env['HTTP_AUTHORIZATION'] =
ActionController::HttpAuthentication::Basic.encode_credentials(user.email,"password")

And you can move it to a function as I said above

Sijo