From 29d7f5c7ac703b175f4321bd3a21f195e3e3f9c3 Mon Sep 17 00:00:00 2001 From: Jesus Bermudez Velazquez Date: Tue, 5 Nov 2024 14:08:01 +0000 Subject: [PATCH] Testing Webmock --- .../api/connect/v3/systems/products_controller_spec.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/engines/instance_verification/spec/requests/api/connect/v3/systems/products_controller_spec.rb b/engines/instance_verification/spec/requests/api/connect/v3/systems/products_controller_spec.rb index b3774fe43..d7298d21e 100644 --- a/engines/instance_verification/spec/requests/api/connect/v3/systems/products_controller_spec.rb +++ b/engines/instance_verification/spec/requests/api/connect/v3/systems/products_controller_spec.rb @@ -72,13 +72,7 @@ context 'when verification provider returns false' do before do - stub_request(:post, scc_activate_url) - .to_return( - status: 422, - body: { error: 'Unexpected instance verification error has occurred' }.to_json, - headers: {} - ) - + WebMock.allow_net_connect! expect(InstanceVerification::Providers::Example).to receive(:new) .with(be_a(ActiveSupport::Logger), be_a(ActionDispatch::Request), payload, instance_data).and_return(plugin_double) expect(plugin_double).to receive(:instance_valid?).and_return(false)