module Warden::Test::Helpers
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/warden/test/helpers.rbs module Warden::Test::Helpers def self.included: (Class _base) -> true end
def self.included(_base)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.included: (Class _base) -> true
This signature was generated using 2 samples from 1 application.
def self.included(_base) ::Warden.test_mode! end
def login_as(user, opts = {})
- Api: - public
Other tags:
- See: 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 logout(*scopes)
- Api: - public
Other tags:
- See: Warden::Proxy#logout -
def logout(*scopes) Warden.on_next_request do |proxy| proxy.logout(*scopes) end end