Class: BaseLoginProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/authenticated_test_helper.rb,
lib/informatics/test/helpers/authentication_helper.rb

Direct Known Subclasses

HttpLoginProxy, XmlLoginProxy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller, login) ⇒ BaseLoginProxy

Returns a new instance of BaseLoginProxy.



69
70
71
72
# File 'lib/authenticated_test_helper.rb', line 69

def initialize(controller, )
  @controller = controller
  @login = 
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object (private)



84
85
86
87
88
89
# File 'lib/authenticated_test_helper.rb', line 84

def method_missing(method, *)
  @controller.reset!
  authenticate
  @controller.send(method, *)
  check
end

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



67
68
69
# File 'lib/authenticated_test_helper.rb', line 67

def controller
  @controller
end

#optionsObject (readonly)

Returns the value of attribute options.



67
68
69
# File 'lib/authenticated_test_helper.rb', line 67

def options
  @options
end