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)