Riko wrote:

> It is the only way?

I found the solution. I have to put an user in the session and it works. 
Actually I have to call it @request.session and not just session (the 
first one is a TestSession that supports key based insertion, while the 
latter is just an Array).

I defined a

  def login(user)
    @request.session[:user] = user
    @request.session[:user].logged_in_at = Time.now
  end

method and then call it if I need to simulate authentication. Good.


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to