module DefraRubyMocks

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/defra_ruby_mocks.rb, line 12
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/defra_ruby_mocks.rb, line 23
def self.configure
  yield(configuration)
end
reset_configuration() click to toggle source

Added for testing. Without we cannot test both a config object with and with set values in the same rspec session

# File lib/defra_ruby_mocks.rb, line 18
def reset_configuration
  @configuration = nil
end