Restful authentication: integration testing


#1

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