Sha256: 2700d13878575fe112fc6ba42ed1a91ad6a7496a17b9cb52133881a15a24a547

Contents?: true

Size: 359 Bytes

Versions: 16

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Helpers
  module Configuration
    def self.prep_for_tests(delay = 100)
      DefraRubyMocks.reset_configuration
      DefraRubyMocks.configure do |config|
        config.enable = true
        config.delay = delay
      end
    end

    def self.reset_for_tests
      DefraRubyMocks.reset_configuration
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
defra_ruby_mocks-2.4.2 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.4.1 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.4.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.3.3 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.3.2 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.3.1 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.3.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.2.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.1.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-2.0.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.5.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.4.1 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.4.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.3.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.2.0 spec/support/helpers/configuration.rb
defra_ruby_mocks-1.1.0 spec/support/helpers/configuration.rb