Sha256: 286704fd44d95739b87fbd5d2f16469182dac2cef74c03369e1114e06a2f0455

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

ENV['RACK_ENV'] ||= 'test'
require 'sidekiq-datadog'

module Mock
  class Worker
  end

  class Statsd < ::Datadog::Statsd
    def timing(stat, _millis, opts={})
      super(stat, 333, opts)
    end

    def send_stat(message)
      messages.push message
    end

    def messages
      @messages ||= []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-datadog-0.5.0 spec/spec_helper.rb