diff --git a/spec/ddtrace/contrib/grape/tracer_spec.rb b/spec/ddtrace/contrib/grape/tracer_spec.rb index a121a8b6edd..3ba0a49dda6 100644 --- a/spec/ddtrace/contrib/grape/tracer_spec.rb +++ b/spec/ddtrace/contrib/grape/tracer_spec.rb @@ -254,7 +254,7 @@ end end - context 'defaults when provided invalid config' do + context 'defaults to >=500 when provided invalid config' do subject(:response) { post '/base/hard_failure' } let(:configuration_options) { { error_statuses: 'xxx-499' } } @@ -262,10 +262,10 @@ expect(response.body).to eq('405 Not Allowed') expect(spans.length).to eq(1) expect(spans[0].name).to eq('grape.endpoint_run') - expect(spans[0].status).to eq(1) - expect(spans[0].get_tag('error.stack')).to_not be_nil - expect(spans[0].get_tag('error.type')).to_not be_nil - expect(spans[0].get_tag('error.msg')).to_not be_nil + expect(spans[0].status).to eq(0) + expect(spans[0].get_tag('error.stack')).to be_nil + expect(spans[0].get_tag('error.type')).to be_nil + expect(spans[0].get_tag('error.msg')).to be_nil end end end