Basically acts like a controller but doesn't do anything. Authlogic can interact with this, do it's thing and then you can look at the controller object to see if anything changed.
# File lib/authlogic/test_case/mock_controller.rb, line 9 def initialize end
# File lib/authlogic/test_case/mock_controller.rb, line 16 def authenticate_or_request_with_http_basic(realm = 'DefaultRealm', &block) self.realm = realm @http_auth_requested = true yield http_user, http_password end
# File lib/authlogic/test_case/mock_controller.rb, line 12 def authenticate_with_http_basic(&block) yield http_user, http_password end
# File lib/authlogic/test_case/mock_controller.rb, line 50 def http_auth_requested? @http_auth_requested ||= false end
# File lib/authlogic/test_case/mock_controller.rb, line 30 def logger @logger ||= MockLogger.new end
# File lib/authlogic/test_case/mock_controller.rb, line 34 def params @params ||= {} end
# File lib/authlogic/test_case/mock_controller.rb, line 38 def request @request ||= MockRequest.new(controller) end
# File lib/authlogic/test_case/mock_controller.rb, line 42 def request_content_type @request_content_type ||= "text/html" end
# File lib/authlogic/test_case/mock_controller.rb, line 46 def session @session ||= {} end