Sha256: 439a98f268964972bcc57603d1cd057ec02d6b811534aa79d7d8aa84c033c080

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 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
    class << self
      def strict_mode_enabled?
        StatsD::Instrument.const_defined?(:Strict) &&
          StatsD.singleton_class.ancestors.include?(StatsD::Instrument::Strict)
      end
    end
  end
end

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

Thread.abort_on_exception = true
Thread.report_on_exception = true

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
statsd-instrument-3.8.0 test/test_helper.rb
statsd-instrument-3.7.0 test/test_helper.rb
statsd-instrument-3.6.1 test/test_helper.rb
statsd-instrument-3.6.0 test/test_helper.rb
statsd-instrument-3.5.12 test/test_helper.rb
statsd-instrument-3.5.11 test/test_helper.rb
statsd-instrument-3.5.10 test/test_helper.rb