Sha256: cbe052aa9b0a07be28b35fa10b2070de63c8eee1019ef910e2ee528f1411e321
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'active_support' require 'active_support/concern' require 'active_support/configurable' require 'active_support/cache' require 'active_support/core_ext/hash' require 'active_support/time' require 'active_support/time_with_zone' require 'factory_bot' require 'factory_bot/instrumentation/configuration' require 'factory_bot/instrumentation/engine' module FactoryBot module Instrumentation class << self attr_writer :configuration end # Retrieve the current configuration object. # # @return [Configuration] def self.configuration @configuration ||= Configuration.new end # Configure the concern by providing a block which takes # care of this task. Example: # # FactoryBot::Instrumentation.configure do |conf| # # conf.xyz = [..] # end def self.configure yield(configuration) end # Reset the current configuration with the default one. def self.reset_configuration! self.configuration = Configuration.new end end end
Version data entries
7 entries across 7 versions & 1 rubygems