class Authlogic::TestCase::MockController
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.
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/authlogic/test_case/mock_controller.rb, line 19 def authenticate_or_request_with_http_basic(realm = "DefaultRealm") self.realm = realm @http_auth_requested = true yield http_user, http_password end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 15 def authenticate_with_http_basic yield http_user, http_password end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 53 def http_auth_requested? @http_auth_requested ||= false end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 33 def logger @logger ||= MockLogger.new end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 37 def params @params ||= {} end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 41 def request @request ||= MockRequest.new(self) end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 45 def request_content_type @request_content_type ||= "text/html" end
Source
# File lib/authlogic/test_case/mock_controller.rb, line 49 def session @session ||= {} end