module Warden
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/warden.rbs module Warden def self.test_mode!: () -> true end
def self.test_mode!
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.test_mode!: () -> true
This signature was generated using 1 sample from 1 application.
Warden.test_reset! - removes any captured blocks that would have been executed on the next request
Warden.on_next_request(&blk) - captures a block which is yielded the warden proxy on the next request
This will provide a number of methods.
Warden.test_mode!
@example
To setup warden in test mode call the +test_mode!+ method on warden
Provides helper methods to warden for testing.
def self.test_mode! unless Warden::Test::WardenHelpers === Warden Warden.extend Warden::Test::WardenHelpers Warden::Manager.on_request do |proxy| unless proxy.asset_request? while blk = Warden._on_next_request.shift blk.call(proxy) end end end end true end