Class: BaseLoginProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/community_engine/authenticated_test_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


27
28
29
30
# File 'lib/community_engine/authenticated_test_helper.rb', line 27

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)


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

#controllerObject (readonly)

Returns the value of attribute controller


25
26
27
# File 'lib/community_engine/authenticated_test_helper.rb', line 25

def controller
  @controller
end

#optionsObject (readonly)

Returns the value of attribute options


26
27
28
# File 'lib/community_engine/authenticated_test_helper.rb', line 26

def options
  @options
end