ALl my controllers require the user to be logged in. SO they will be
redirected to my “login” controller.
How do i login first in a functional test? Im assuming i use the setup
method to login the controller.
This is the setup method for the Activities controller functional test:
@controller = ActivitiesController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
my “login” controller has a method “authenticate” which needs
params[:username] and params[:password]. Please help!