diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-11 12:48:34 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-24 21:43:07 +0200 |
commit | 0575baa6bb50264964c6c1896218e83ef7ed5025 (patch) | |
tree | 179418cb4559ddc971cf4f57bddf98b379e58239 /spec/bundler | |
parent | a8874423f347efa52d69b332cc855def812e9b5b (diff) | |
download | bundler-0575baa6bb50264964c6c1896218e83ef7ed5025.tar.gz |
Bump net-http-persistent to 3.0.1
* Adds an extra artifice task to vendorize new `connection_pool`
dependency.
* Cherry-pick's needed Windows fix not yet merged into master branch of
`net-http-persistent`.
* Update bundler usages to be compatible with the new version, and fix
unit specs.
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/vendored_persistent_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/vendored_persistent_spec.rb b/spec/bundler/vendored_persistent_spec.rb index c760c067e0..b4d68c2ea0 100644 --- a/spec/bundler/vendored_persistent_spec.rb +++ b/spec/bundler/vendored_persistent_spec.rb @@ -5,13 +5,13 @@ require "bundler/vendored_persistent" RSpec.describe Bundler::PersistentHTTP do describe "#warn_old_tls_version_rubygems_connection" do let(:uri) { "https://index.rubygems.org" } - let(:connection) { instance_double(subject.http_class) } + let(:connection) { instance_double(Bundler::Persistent::Net::HTTP::Persistent::Connection) } let(:tls_version) { "TLSv1.2" } let(:socket) { double("Socket") } let(:socket_io) { double("SocketIO") } before do - allow(connection).to receive(:use_ssl?).and_return(!tls_version.nil?) + allow(connection).to receive_message_chain(:http, :use_ssl?).and_return(!tls_version.nil?) allow(socket).to receive(:io).and_return(socket_io) if socket connection.instance_variable_set(:@socket, socket) |