Sha256: 8b955fecceec3d1a68f993f879701df65d6d460cf3d6dcbb3bf1b91992b097dd

Contents?: true

Size: 541 Bytes

Versions: 15

Compression:

Stored size: 541 Bytes

Contents

class MockController < Authlogic::ControllerAdapters::AbstractAdapter
  attr_accessor :http_user, :http_password
  attr_writer :request_content_type
  
  def initialize
  end
  
  def authenticate_with_http_basic(&block)
    yield http_user, http_password
  end
  
  def cookies
    @cookies ||= MockCookieJar.new
  end
  
  def params
    @params ||= {}
  end
  
  def request
    @request ||= MockRequest.new
  end
  
  def request_content_type
    @request_content_type ||= "text/html"
  end
  
  def session
    @session ||= {}
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
authlogic-1.3.0 test/libs/mock_controller.rb
authlogic-1.3.1 test/libs/mock_controller.rb
authlogic-1.1.1 test/libs/mock_controller.rb
authlogic-1.2.1 test/libs/mock_controller.rb
authlogic-1.3.2 test/libs/mock_controller.rb
authlogic-1.2.0 test/libs/mock_controller.rb
authlogic-1.1.2 test/libs/mock_controller.rb
authlogic-1.2.2 test/libs/mock_controller.rb
authlogic-1.3.7 test/libs/mock_controller.rb
authlogic-1.3.4 test/libs/mock_controller.rb
authlogic-1.3.6 test/libs/mock_controller.rb
authlogic-1.3.8 test/libs/mock_controller.rb
authlogic-1.3.9 test/libs/mock_controller.rb
authlogic-1.3.3 test/libs/mock_controller.rb
authlogic-1.3.5 test/libs/mock_controller.rb