lib/warden/test/helpers.rb
# A helper method that will perform a login of a user in warden for the next request.
# Provide it the same options as you would to Warden::Proxy#set_user
# @see Warden::Proxy#set_user
# @api public
A helper method that will perform a login of a user in warden for the next request.
Provide it the same options as you would to Warden::Proxy#set_user
A helper method that will perform a login of a user in warden for the next request . Provide it the same options as you would to Warden :: Proxy#set_user
def login_as(user, opts = {})
        Warden.on_next_request do |proxy|
          opts[:event] ||= :authentication
          proxy.set_user(user, opts)
        end
      end
def login_as ( user , opts = { } ) Warden . on_next_request do | proxy | opts [ :event ] ||= :authentication proxy . set_user ( user , opts ) end end
A helper method that will perform a login of a user in warden for the next request.
A helper method that will perform a login of a user in warden for the next request .
user
<not_specific>
opts
<not_specific>
see
None
api
None