Class: BaseLoginProxy
- Inherits:
-
Object
- Object
- BaseLoginProxy
- Defined in:
- lib/community_engine/authenticated_test_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.
27 28 29 30 |
# File 'lib/community_engine/authenticated_test_helper.rb', line 27 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, *args) ⇒ Object (private)
41 42 43 44 45 46 |
# File 'lib/community_engine/authenticated_test_helper.rb', line 41 def method_missing(method, *args) @controller.reset! authenticate @controller.send(method, *args) check end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
25 26 27 |
# File 'lib/community_engine/authenticated_test_helper.rb', line 25 def controller @controller end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
26 27 28 |
# File 'lib/community_engine/authenticated_test_helper.rb', line 26 def @options end |