Class: BaseLoginProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/authenticated_test_helper.rb

Direct Known Subclasses

HttpLoginProxy, XmlLoginProxy

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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, )
  @controller = controller
  @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
  @options
end

Instance Method Details

- (Object) authenticated (private)

Raises:

  • (NotImplementedError)


76
77
78
# File 'lib/authenticated_test_helper.rb', line 76

def authenticated
  raise NotImplementedError
end

- (Object) check (private)

Raises:

  • (NotImplementedError)


80
81
82
# File 'lib/authenticated_test_helper.rb', line 80

def check
  raise NotImplementedError
end