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

Version Path
zena-1.2.8 zena_console.rb
zena-1.2.7 zena_console.rb
zena-1.2.6 zena_console.rb
zena-1.2.5 zena_console.rb
zena-1.2.4 zena_console.rb
zena-1.2.3 zena_console.rb
zena-1.2.2 zena_console.rb
zena-1.2.1 zena_console.rb
zena-1.2.0 zena_console.rb
zena-1.1.3 zena_console.rb
zena-1.1.2 zena_console.rb
zena-1.1.1 zena_console.rb
zena-1.1.0 zena_console.rb
zena-1.0.0 zena_console.rb
zena-1.0.0.rc3 zena_console.rb
zena-1.0.0.rc2 zena_console.rb
zena-1.0.0.rc1 zena_console.rb
zena-0.16.9 zena_console.rb
zena-1.0.0.beta3 zena_console.rb
zena-0.16.8 zena_console.rb