Skip to content

Commit

Permalink
Workaround for RSpec JRuby issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Aug 20, 2020
1 parent cb02d74 commit 004c7c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/ddtrace/tracer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@

context 'is a block' do
it 'yields to the error block and raises the error' do
expect_any_instance_of(Datadog::Span).to_not receive(:set_error)
expect do
expect do |b|
tracer.trace(name, on_error: b.to_proc, &block)
Expand All @@ -196,6 +195,9 @@
error
)
end.to raise_error(error)

expect(spans).to have(1).item
expect(spans[0]).to_not have_error
end
end
end
Expand Down

0 comments on commit 004c7c2

Please sign in to comment.