lib/authlogic/test_case/mock_request.rb in authlogic-6.1.0 vs lib/authlogic/test_case/mock_request.rb in authlogic-6.2.0

- old
+ new

@@ -7,9 +7,13 @@ def initialize(controller) self.controller = controller end + def format + controller.request_content_type if controller.respond_to? :request_content_type + end + def ip controller&.respond_to?(:env) && controller.env.is_a?(Hash) && controller.env["REMOTE_ADDR"] || "1.1.1.1"