Class: BaseLoginProxy
- Inherits:
-
Object
- Object
- BaseLoginProxy
- Defined in:
- lib/authenticated_test_helper.rb,
lib/informatics/test/helpers/authentication_helper.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(controller, login) ⇒ BaseLoginProxy
constructor
A new instance of BaseLoginProxy.
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, login) @controller = controller @login = 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
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
67 68 69 |
# File 'lib/authenticated_test_helper.rb', line 67 def controller @controller end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
67 68 69 |
# File 'lib/authenticated_test_helper.rb', line 67 def @options end |