Skip to content

Commit

Permalink
Adjust spec for 3.4 syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahchen6 committed Nov 7, 2024
1 parent 1b69d78 commit 6da8be3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/datadog/opentelemetry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6da8be3

Please sign in to comment.