Frederick Cheung wrote:
> On 3 Oct 2008, at 16:29, Wes Gamble wrote:
> 
>> 3) Why is the Location header on the response showing to be what it
>> would be right after a login?
>>
> 
> Does your login method actually do a request? that would explain
> everything. @request, @response etc... are not reset if you perform
> multiple requests from a single functional test.
> 
> Fred

Yeah it does.  Here's the login method:

  def login(user = 'blah', password = 'blah')
    old_controller = @controller
    @controller = AccountController.new
    post :login, :login => user, :password => password
    assert_response(:redirect)
    assert_equal(flash[:notice], "Logged in successfully", "Should be 
logged in.")
    @controller = old_controller
  end

Thanks, Fred.  Just verifying.

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to