Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
net-http
deprecation warning for Ruby 3.4
This old constant was deprecated in 2001 and will now be removed in Ruby 3.5 On Ruby 3.4, removing a deprecated constant will warn: > /home/user/code/webmock/lib/webmock/http_lib_adapters/net_http.rb:55: warning: constant Net::HTTPSession is deprecated It fixes this error on Ruby 3.5: ``` /usr/local/bundle/bundler/gems/webmock-9ff63ac7c845/lib/webmock/http_lib_adapters/net_http.rb:25:in 'Module#remove_const': constant Net::HTTPSession not defined (NameError) Net.send(:remove_const, :HTTPSession) ^^^^^ from /usr/local/bundle/bundler/gems/webmock-9ff63ac7c845/lib/webmock/http_lib_adapters/net_http.rb:25:in 'WebMock::HttpLibAdapters::NetHttpAdapter.disable!' ```
- Loading branch information