A mock of an application to get a Warden object to test on Note: During the teardown phase of your specs you should include: Warden.test_reset!
# File lib/warden/test/mock.rb, line 11 def self.included(base) ::Warden.test_mode! end
A helper method that provides the warden object by mocking the env variable. @api public
# File lib/warden/test/mock.rb, line 17 def warden @warden ||= begin env['warden'] end end