Module: ActiveResourceHttpMock

Defined in:
lib/active_resource_http_mock.rb,
lib/active_resource_http_mock/rspec.rb,
lib/active_resource_http_mock/version.rb,
lib/active_resource_http_mock/data_file.rb,
lib/active_resource_http_mock/configuration.rb,
lib/active_resource_http_mock/log_subscriber.rb,
lib/active_resource_http_mock/active_resource/http_mockable.rb,
lib/active_resource_http_mock/active_resource/request_loggable.rb

Defined Under Namespace

Modules: ActiveResource, RSpec Classes: Configuration, DataFile, LogSubscriber

Constant Summary collapse

VERSION =
'0.0.2'

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config



8
9
10
# File 'lib/active_resource_http_mock.rb', line 8

def configuration
  @configuration ||= ActiveResourceHttpMock::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/active_resource_http_mock.rb', line 13

def configure(&block)
  yield configuration if block_given?
end