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


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

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object (private)


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

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

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller


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

def controller
  @controller
end

#optionsObject (readonly)

Returns the value of attribute options


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

def options
  @options
end