From 0643968fe126edde744c2c2e46409ca313577c24 Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Fri, 3 Jan 2025 16:10:37 -0800 Subject: [PATCH] Update tests for newer version --- spec/datadog/tracing/contrib/sneakers/tracer_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/datadog/tracing/contrib/sneakers/tracer_spec.rb b/spec/datadog/tracing/contrib/sneakers/tracer_spec.rb index 8798eb6a36b..0e04f022365 100644 --- a/spec/datadog/tracing/contrib/sneakers/tracer_spec.rb +++ b/spec/datadog/tracing/contrib/sneakers/tracer_spec.rb @@ -62,7 +62,7 @@ def work_with_params(_msg, _delivery_info, _metadata) let(:delivery_info) { double } let(:message) { Sneakers::ContentType.deserialize('{"foo":"bar"}', 'application/json') } let(:handler) { Object.new } - let(:metadata) { double } + let(:metadata) { { content_type: 'application/json' } } let(:routing_key) { 'something' } let(:consumer) { double('Consumer') } @@ -72,7 +72,6 @@ def work_with_params(_msg, _delivery_info, _metadata) allow(delivery_info).to receive(:routing_key).and_return(routing_key) allow(delivery_info).to receive(:consumer).and_return(consumer) allow(consumer).to receive(:queue).and_return(queue) - allow(metadata).to receive(:[]).with(:content_type).and_return('application/json') end it do