Forum: Ruby on Rails restful authentication: integration testing

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
itsastickup (Guest)
on 2009-02-10 20:39
(Received via mailing list)

Anyone know how to do integration testing with the "Restful
Authentication" plugin?

I've been trying this, without luck :

def login_session(user)
  open_session do |sess|
    sess.extend(AuthenticatedTestHelper); #<<my clever idea
    sess.login_as(users(user))#<<won't work

but predictably it splats on the last line. Various objects aren't
available to the helper code.

What should I be doing?

This topic is locked and can not be replied to.