We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818b6c0 commit e3ded02Copy full SHA for e3ded02
sentry-ruby/spec/sentry/faraday_spec.rb
@@ -1,6 +1,8 @@
1
# frozen_string_literal: true
2
3
require "faraday"
4
+require "contexts/with_request_mock"
5
+
6
require_relative "../spec_helper"
7
8
RSpec.describe Sentry::Faraday do
@@ -263,6 +265,8 @@
263
265
end
264
266
267
context "when adapter is net/http" do
268
+ include_context "with request mock"
269
270
let(:http) do
271
Faraday.new(url) do |f|
272
f.request :json
@@ -272,7 +276,9 @@
276
273
277
let(:url) { "http://example.com" }
274
278
275
- it "skips instrumentation", webmock: false do
279
+ it "skips instrumentation" do
280
+ stub_normal_response(code: "200")
281
282
transaction = Sentry.start_transaction
283
Sentry.get_current_scope.set_span(transaction)
284
0 commit comments