Skip to content

Commit

Permalink
Update tests for newer version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jan 4, 2025
1 parent 7bd5b43 commit 0643968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/datadog/tracing/contrib/sneakers/tracer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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') }

Expand All @@ -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
Expand Down

0 comments on commit 0643968

Please sign in to comment.