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 3ee5a79ed..aead8979f 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,6 +72,13 @@ context 'when verification provider returns false' do before do + stub_request(:post, scc_activate_url) + .to_return( + status: 200, + body: { ok: 'ok' }.to_json, + headers: {} + ) + 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)