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