spec/outputs/dogstatsd_spec.rb in logstash-output-dogstatsd-1.2.0 vs spec/outputs/dogstatsd_spec.rb in logstash-output-dogstatsd-1.3.0

- old
+ new

@@ -37,11 +37,11 @@ subject end end context 'with tags' do - let(:metric_config) { super().merge('metric_tags' => { 'foo' => '%{value}' }) } + let(:metric_config) { super().merge('metric_tags' => ['foo:%{value}']) } let(:event) { { 'value' => 'helloworld' } } it 'sprintf tags' do expect_any_instance_of(Datadog::Statsd).to receive(:send_to_socket) .with("#{metric_to_track}:1|c|#foo:helloworld") @@ -53,10 +53,10 @@ context 'histogram metrics' do let(:metric_to_track) { 'metric.name.here' } let(:metric_config) { { 'histogram' => { '%{metric_name}' => '%{track_value}' } } } let(:event) { super().merge('metric_name' => metric_to_track, 'track_value' => 123) } - context 'with tags in the metric name and value' do + context 'with event fields in the metric name and value' do it 'tracks' do expect_any_instance_of(Datadog::Statsd).to receive(:send_to_socket) .with("#{metric_to_track}:123|h") subject end