Sha256: f451d7b7983926d7c5e926de4eba0d20dc1005816bf5995b01fe23dcb9884ba6
Contents?: true
Size: 642 Bytes
Versions: 18
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true require "defra_ruby_mocks/engine" module DefraRubyMocks # Enable the ability to configure the gem from its host app, rather than # reading directly from env vars. Derived from # https://robots.thoughtbot.com/mygem-configure-block class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end # Added for testing. Without we cannot test both a config object with and # with set values in the same rspec session def reset_configuration @configuration = nil end end def self.configure yield(configuration) end end
Version data entries
18 entries across 18 versions & 1 rubygems