Sha256: 32c7f6a176dda617caf3c8aa0ad31a393bc4c11f606f579cb714c04e43d1ed13

Contents?: true

Size: 589 Bytes

Versions: 17

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

if Warning.respond_to?(:[]=)
  Warning[:deprecated] = true
end

ENV["ENV"] = "test"

require "minitest/autorun"
require "minitest/pride"
require "mocha/minitest"
require "statsd-instrument"

require_relative "helpers/rubocop_helper"

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

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

Thread.abort_on_exception = true
Thread.report_on_exception = true

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
statsd-instrument-3.5.9 test/test_helper.rb
statsd-instrument-3.5.8 test/test_helper.rb
statsd-instrument-3.5.7 test/test_helper.rb
statsd-instrument-3.5.6 test/test_helper.rb
statsd-instrument-3.5.5 test/test_helper.rb
statsd-instrument-3.5.4 test/test_helper.rb
statsd-instrument-3.5.3 test/test_helper.rb
statsd-instrument-3.5.2 test/test_helper.rb
statsd-instrument-3.5.1 test/test_helper.rb
statsd-instrument-3.5.0 test/test_helper.rb
statsd-instrument-3.4.0 test/test_helper.rb
statsd-instrument-3.3.0 test/test_helper.rb
statsd-instrument-3.2.1 test/test_helper.rb
statsd-instrument-3.2.0 test/test_helper.rb
statsd-instrument-3.1.2 test/test_helper.rb
statsd-instrument-3.1.1 test/test_helper.rb
statsd-instrument-3.1.0 test/test_helper.rb