Method: Authlogic::TestCase::MockController#authenticate_or_request_with_http_basic

Defined in:
lib/authlogic/test_case/mock_controller.rb

#authenticate_or_request_with_http_basic(realm = "DefaultRealm") {|http_user, http_password| ... } ⇒ Object



19
20
21
22
23
# 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