Forum: Ruby on Rails restful authentication: integration testing

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2701c824d560c66c31b3d58d36fe17cf?d=identicon&s=25 itsastickup (Guest)
on 2009-02-10 19:39
(Received via mailing list)
Hi,

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(CustomDsl)
    sess.extend(AuthenticatedTestHelper); #<<my clever idea
    sess.login_as(users(user))#<<won't work
  end
end

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

What should I be doing?

thanks
This topic is locked and can not be replied to.