Hi Jeff,

Its fairly easy if you're using the request() helper:

request(url(:authenticate),
            :params => {:user => {:email => @user.email, :password =>
@user.password}},
            :method => 'POST')

Sessions are sticky.

Best Regards,

Ahsan / highandwild


On Sat, Nov 22, 2008 at 5:52 AM, Jeff Larkin <[EMAIL PROTECTED]> wrote:

>
> Hi all.  I'm trying to figure out how to establish a logged in session
> within my request specs.  I'm using the merb-auth-slice-password, so
> I'm sure someone on this list has gotten this working.  Does anybody
> have a code snippet that shows how to login a user before making
> protected requests within rspec tests?
>
> Thanks,
> -Jeff
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to