Sha256: dc72863fffe33e36f085e66066ebf53775a4ebb3628e230a091b2bde4b4c9ed3
Contents?: true
Size: 866 Bytes
Versions: 1
Compression:
Stored size: 866 Bytes
Contents
require 'spec_helper' require 'fozzie/adapter/datadog' module Fozzie::Adapter describe Datadog do it_behaves_like "fozzie adapter" # Switch to Statsd adapter for the duration of this test before(:all) do Fozzie.c.adapter = :Datadog end after(:all) do Fozzie.c.adapter = :TestAdapter end describe "#register" do it "appends tags to the metrics" do subject.should_receive(:send_to_socket).with(%r{\|#country:usa,testing$}) subject.register(:bucket => "foo", :value => 1, :type => :gauge, :sample_rate => 1, tags: ['country:usa','testing']) end it "does not append tags when none are specified" do subject.should_receive(:send_to_socket).with(%r{foo:1\|g$}) subject.register(:bucket => "foo", :value => 1, :type => :gauge, :sample_rate => 1) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fozzie-1.1.0 | spec/lib/fozzie/adapter/datadog_spec.rb |