Class: XmlLoginProxy

Inherits:
BaseLoginProxy show all
Defined in:
lib/authenticated_test_helper.rb

Instance Attribute Summary

Attributes inherited from BaseLoginProxy

#controller, #options

Instance Method Summary (collapse)

Methods inherited from BaseLoginProxy

#authenticated, #initialize, #method_missing

Constructor Details

This class inherits a constructor from BaseLoginProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BaseLoginProxy

Instance Method Details

- (Object) authenticate (protected)



105
106
107
108
# File 'lib/authenticated_test_helper.rb', line 105

def authenticate
  @controller.accept 'application/xml'
  @controller.authorize_as @login if @login
end

- (Object) check (protected)



110
111
112
# File 'lib/authenticated_test_helper.rb', line 110

def check
  @controller.assert_response 401
end