From 28f4ab343e31d5af0a4f1a1c6c9ae6ae4f869965 Mon Sep 17 00:00:00 2001 From: Ansh Rupani Date: Fri, 16 Feb 2024 18:24:10 +0530 Subject: [PATCH] fix failing unit tests --- .../spec/unit/azure_client/azure_stack_ca_cert_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bosh_azure_cpi/spec/unit/azure_client/azure_stack_ca_cert_spec.rb b/src/bosh_azure_cpi/spec/unit/azure_client/azure_stack_ca_cert_spec.rb index f934995f4..fca0b9041 100644 --- a/src/bosh_azure_cpi/spec/unit/azure_client/azure_stack_ca_cert_spec.rb +++ b/src/bosh_azure_cpi/spec/unit/azure_client/azure_stack_ca_cert_spec.rb @@ -8,7 +8,9 @@ let(:http) { instance_double(Net::HTTP) } before do + allow_any_instance_of(Net::HTTP).to receive(:ssl_options=) allow(Net::HTTP).to receive(:new).and_return(http) + allow(http).to receive(:ssl_options=) end describe '#azure_stack_ca_cert' do