[Rails] Functional Test Problem. Nubee, please help

Allen
Thu, 27 Apr 2006 20:44:22 -0000

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:

  def setup
    @controller = ActivitiesController.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
  end

my "login" controller has a method "authenticate" which
needs
params[:username] and params[:password].  Please help!

Thanks
Allen

--
Posted via http://www.ruby-forum.com/.