Sha256: ac9bcbbbebc00e5363fcf0c280a38f0a3b5e738c81cafb5132764017f70af568
Contents?: true
Size: 921 Bytes
Versions: 28
Compression:
Stored size: 921 Bytes
Contents
module Macmillan module Utils ## # A test helper class for stubbing out interaction with StatsD. # # === Usage (in spec/spec_helper.rb): # # require 'macmillan/utils/statsd_stub' # # RSpec.configure do |config| # config.before(:suite) do # $statsd = Macmillan::Utils::StatsdStub.new # end # end # # @see Macmillan::Utils::StatsdDecorator # @see http://rubygems.org/gems/statsd-ruby # class StatsdStub def increment(_stat, _sample_rate = 1) end def decrement(_stat, _sample_rate = 1) end def count(_stat, _count, _sample_rate = 1) end def guage(_stat, _value, _sample_rate = 1) end def set(_stat, _value, _sample_rate = 1) end def timing(_stat, _ms, _sample_rate = 1) end def time(_stat, _sample_rate = 1) yield end end end end
Version data entries
28 entries across 28 versions & 1 rubygems