Skip to content

Commit

Permalink
Remove webmock (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py authored Aug 19, 2022
1 parent 67bb989 commit 29f5875
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion sentry-ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ gem "rack" unless ENV["WITHOUT_RACK"] == "1"
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"
gem "rspec-retry"
gem "webmock"
gem "fakeredis"
gem "timecop"
gem 'simplecov'
Expand Down
4 changes: 0 additions & 4 deletions sentry-ruby/spec/contexts/with_request_mock.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
require "webmock"

# because our patch on Net::HTTP is relatively low-level, we need to stub methods on socket level
# which is not supported by most of the http mocking library
# so we need to put something together ourselves
RSpec.shared_context "with request mock" do
before { stub_const('Net::BufferedIO', Net::WebMockNetBufferedIO) }

class FakeSocket < StringIO
def setsockopt(*args); end
end
Expand Down

0 comments on commit 29f5875

Please sign in to comment.