Top Level Namespace
Defined Under Namespace
Modules: StupidAuth
Instance Method Summary collapse
Instance Method Details
#login_as(user) ⇒ Object
1 2 3 4 5 6 |
# File 'lib/stupid_auth/webrat_helpers.rb', line 1 def login_as user visit login_path fill_in_fields :login => user.send(User.login_field), :password => 'testing' 'Login' end |
#logout ⇒ Object
8 9 10 |
# File 'lib/stupid_auth/webrat_helpers.rb', line 8 def logout visit logout_path end |