Jim Burgess wrote:

> I wrote some tests for my controller which all worked as they should
> until I added http authentication using 'before_filter :authenticate'

Google (or use Google CodeSearch) and find login_as

Put it in your def setup, or in the top of each test:

   login_as :bob

Such a method should have come with your authentication plugin. If it doesn't 
work, read what's inside it, and match that to your current session[] usage.

-- 
   Phlip
   http://zeekland.zeroplayer.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