diff --git a/sentry-ruby/spec/sentry/faraday_spec.rb b/sentry-ruby/spec/sentry/faraday_spec.rb index 77e90db0a..170926927 100644 --- a/sentry-ruby/spec/sentry/faraday_spec.rb +++ b/sentry-ruby/spec/sentry/faraday_spec.rb @@ -271,6 +271,12 @@ let(:url) { "http://example.com" } + around do |example| + WebMock.disable! + example.run + WebMock.enable! + end + it "skips instrumentation" do transaction = Sentry.start_transaction Sentry.get_current_scope.set_span(transaction) diff --git a/sentry-ruby/spec/sentry/transport_spec.rb b/sentry-ruby/spec/sentry/transport_spec.rb index 621f45c30..bcef588fe 100644 --- a/sentry-ruby/spec/sentry/transport_spec.rb +++ b/sentry-ruby/spec/sentry/transport_spec.rb @@ -537,7 +537,7 @@ to_raise(Timeout::Error) end - it "raises the error" do + it "raises Sentry::ExternalError" do expect { subject.send_event(event) }.to raise_error(Sentry::ExternalError) end end