Class: BaseLoginProxy
- Inherits:
-
Object
- Object
- BaseLoginProxy
- Defined in:
- lib/authenticated_test_helper.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) controller
readonly
Returns the value of attribute controller.
-
- (Object) options
readonly
Returns the value of attribute options.
Instance Method Summary (collapse)
- - (Object) authenticated private
- - (Object) check private
-
- (BaseLoginProxy) initialize(controller, login)
constructor
A new instance of BaseLoginProxy.
- - (Object) method_missing(method, *args) private
Constructor Details
- (BaseLoginProxy) initialize(controller, login)
A new instance of BaseLoginProxy
70 71 72 73 |
# File 'lib/authenticated_test_helper.rb', line 70 def initialize(controller, login) @controller = controller @login = login end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(method, *args) (private)
84 85 86 87 88 89 |
# File 'lib/authenticated_test_helper.rb', line 84 def method_missing(method, *args) @controller.reset! authenticate @controller.send(method, *args) check end |
Instance Attribute Details
- (Object) controller (readonly)
Returns the value of attribute controller
68 69 70 |
# File 'lib/authenticated_test_helper.rb', line 68 def controller @controller end |
- (Object) options (readonly)
Returns the value of attribute options
69 70 71 |
# File 'lib/authenticated_test_helper.rb', line 69 def @options end |
Instance Method Details
- (Object) authenticated (private)
76 77 78 |
# File 'lib/authenticated_test_helper.rb', line 76 def authenticated raise NotImplementedError end |
- (Object) check (private)
80 81 82 |
# File 'lib/authenticated_test_helper.rb', line 80 def check raise NotImplementedError end |