If necessary debug into the logged_in? method in authenticated_system.rb to
check what is happening. That should call current_user then
login_from_session should pick up the user_id and log you in.

2009/1/20 John Small <[email protected]>

>
> Colin Law wrote:
> > I must admit I am having difficulty finding documentaion on this. I got
> > it
> > from section 13.3 (Functional Testing) of Agile Development With Rails
> > (Pragmatic Bookshelf) and it certainly works.
> > When you say it doesn't work was there an error or did the login
> > simulation
> > not work?
> >
> > 2009/1/20 John Small <[email protected]>
>
> OK, I see the reference. That's probably the only place it's ever
> written down, you either know it or you don't. It doesn't seem to be in
> the online docs.
>
> I'll fiddle with it to see if I can get it to work. You say you can so
> it must be possible. I'm not sure where the error is, I just see that I
> don't have a variable @current_user available in my views unless I go
> via login in integration.
>
> I'll be a while. I'm out till Thursday. Thanks all the same.
>
> John Small
> --
> 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