Skip to content

Commit

Permalink
Remove unneeded super calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Sep 16, 2022
1 parent 5bbbffb commit a5ff117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/datadog/tracing/contrib/rack/integration_test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
it_behaves_like 'a rack GET 200 span'

context 'and default quantization' do
let(:rack_options) { super().merge(quantize: {}) }
let(:rack_options) { { quantize: {} } }

it do
expect(span.get_tag('http.url')).to eq('/success/')
Expand All @@ -114,7 +114,7 @@
end

context 'and quantization activated for URL base' do
let(:rack_options) { super().merge(quantize: { base: :show }) }
let(:rack_options) { { quantize: { base: :show } } }

it do
expect(span.get_tag('http.url')).to eq('http://example.org/success/')
Expand All @@ -130,7 +130,7 @@
let(:route) { '/success?foo=bar' }

context 'and default quantization' do
let(:rack_options) { super().merge(quantize: {}) }
let(:rack_options) { { quantize: {} } }

it_behaves_like 'a rack GET 200 span'

Expand All @@ -142,7 +142,7 @@
end

context 'and quantization activated for the query' do
let(:rack_options) { super().merge(quantize: { query: { show: ['foo'] } }) }
let(:rack_options) { { quantize: { query: { show: ['foo'] } } } }

it_behaves_like 'a rack GET 200 span'

Expand All @@ -158,7 +158,7 @@
subject(:response) { get '/success?foo=bar', {}, 'REQUEST_URI' => '/success?foo=bar' }

context 'and default quantization' do
let(:rack_options) { super().merge(quantize: {}) }
let(:rack_options) { { quantize: {} } }

it_behaves_like 'a rack GET 200 span'

Expand All @@ -173,7 +173,7 @@
end

context 'and quantization activated for the query' do
let(:rack_options) { super().merge(quantize: { query: { show: ['foo'] } }) }
let(:rack_options) { { quantize: { query: { show: ['foo'] } } } }

it_behaves_like 'a rack GET 200 span'

Expand Down

0 comments on commit a5ff117

Please sign in to comment.