diff --git a/spec/datadog/opentelemetry_spec.rb b/spec/datadog/opentelemetry_spec.rb index e941b7d61f..45f82db378 100644 --- a/spec/datadog/opentelemetry_spec.rb +++ b/spec/datadog/opentelemetry_spec.rb @@ -630,11 +630,11 @@ expect(span.events[0].attributes['exception.message']).to eq('Error') expect(span.events[0].attributes['exception.type']).to eq('StandardError') expect(span.events[0].attributes['exception.stacktrace']).to include( - ":in `full_message': Error (StandardError)" + "full_message': Error (StandardError)" ) expect(span).to_not have_error expect(span).to have_error_message('Error') - expect(span).to have_error_stack(include(":in `full_message': Error (StandardError)")) + expect(span).to have_error_stack(include("full_message': Error (StandardError)")) expect(span).to have_error_type('StandardError') end end @@ -649,7 +649,7 @@ expect(span.events[0].attributes).to eq({}) expect(span).to_not have_error expect(span).to have_error_message('Error') - expect(span).to have_error_stack(include(":in `full_message': Error (StandardError)")) + expect(span).to have_error_stack(include("full_message': Error (StandardError)")) expect(span).to have_error_type('StandardError') end end