diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/bundler/vendored_persistent_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/bundler/vendored_persistent_spec.rb b/spec/bundler/bundler/vendored_persistent_spec.rb index c760c067e0..b4d68c2ea0 100644 --- a/spec/bundler/bundler/vendored_persistent_spec.rb +++ b/spec/bundler/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) |