Class: ConfigurationService::Provider::Broken

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration_service/provider/broken.rb

Overview

A stub broken Client service provider

Used to validate the test framework architecture.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Broken

Returns a new instance of Broken.



14
15
# File 'lib/configuration_service/provider/broken.rb', line 14

def initialize(options = {})
end

Instance Method Details

#publish_configuration(configuration, token) ⇒ Object

Raises:



20
21
22
# File 'lib/configuration_service/provider/broken.rb', line 20

def publish_configuration(configuration, token)
  raise ConfigurationService::Error, "error requested by test"
end

#request_configuration(identifier, token) ⇒ Object

Raises:



27
28
29
# File 'lib/configuration_service/provider/broken.rb', line 27

def request_configuration(identifier, token)
  raise ConfigurationService::Error, "error requested by test"
end