Sha256: 2892a07a2fd4a8b606e6f19e2dc916efdc90906eaf616e216a44f401985b8eea

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

ENV['ENV'] = 'test'

require 'minitest/autorun'
require 'minitest/pride'
require 'mocha/setup'
require 'set'
require 'logger'
require 'statsd-instrument'

require_relative 'helpers/rubocop_helper'

require 'statsd/instrument/strict' if ENV['STATSD_STRICT_MODE']

module StatsD::Instrument
  def self.strict_mode_enabled?
    StatsD::Instrument.const_defined?(:Strict) &&
      StatsD.singleton_class.ancestors.include?(StatsD::Instrument::Strict)
  end
end

StatsD.logger = Logger.new(File::NULL)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
statsd-instrument-2.5.1 test/test_helper.rb
statsd-instrument-2.5.0 test/test_helper.rb