Sha256: 4814ee21815960fb49215e6caabc3ec9dee6c562ed3635a6ef51d73ea29a5423
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
require 'test_helper' require 'warden' class TestController < ActionController::TestCase def setup @routes = Rails.application.routes @controller.env['warden'] = @request.env['warden'] = Warden::Proxy.new(@request.env, self.class.manager) end def self.manager @manager ||= Warden::Manager.new(self, { default_strategies: :password, failure_app: SessionsController.action(:failed) }) end def teardown Warden.test_reset! end def proxy @controller.env['warden'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecrire-0.24.1 | test/test_controller.rb |
ecrire-0.24.0 | test/test_controller.rb |