Just a shot in the dark, but a 302 is a redirect, so even though it
*appears* to work when you do a manual check you might just be missing the
fact that you were redirected.

I'm a noob, so I can't shed any light on how to actually fix this...

On Thu, Apr 29, 2010 at 5:42 AM, Joachim <[email protected]> wrote:

> Hello I'm new to Hobo and I have some with writing tests with users.
> I took a look at
>
> http://groups.google.com/group/hobousers/browse_thread/thread/d4adeff2882b3e43/879ec17315a33307?lnk=gst&q=test+acting_user#879ec17315a33307
>
> and wanted to do as suggested. It worked for unit tests, but with
> functional tests I can't get it working.
>
> I want logged in users to be able to view their friends and guests to be
> redirected to login page. I wrote tests and fixtures ( attached), but it
> apparently doesn't work I get
>
> ---
>  1) Failure:
> test_logged_in_can_access(FriendsControllerTest)
> [/test/functional/friends_controller_test.rb:23]:
> Expected response to be a <:success>, but was <302>
> ---
>
> When I check it manually it works as expected. Do you know what I'm
> doing wrong ( login?)?
>
> Joachim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>

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

Reply via email to