From 8a972b014628a9eef0eb7700134c7a5098caf03d Mon Sep 17 00:00:00 2001 From: Eric Mustin Date: Thu, 12 Nov 2020 22:30:00 +0100 Subject: [PATCH] Update spec/ddtrace/contrib/grape/tracer_spec.rb --- spec/ddtrace/contrib/grape/tracer_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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