Sha256: aaadcf537fdb2b8eed2670a46fb0d5dd8040f562cad5a9d9b0e3827160585a45
Contents?: true
Size: 656 Bytes
Versions: 26
Compression:
Stored size: 656 Bytes
Contents
require 'test/test_helper' require "authlogic/test_case" require 'hpricot' include Zena::Acts::Secure module Console include Zena::Use::Fixtures include Zena::Use::TestHelper include Zena::Acts::Secure include ::Authlogic::TestCase def controller @controller ||= Authlogic::TestCase::MockController.new end def setup_authlogic Authlogic::Session::Base.controller = (@request && Authlogic::TestCase::RailsRequestAdapter.new(@request)) || controller end def visitor Thread.current[:visitor] end module_function :controller, :activate_authlogic, :login, :users, :versions, :visitor end Console.activate_authlogic
Version data entries
26 entries across 26 versions & 1 rubygems