From f872201fefdb4d56a2a14303d3cf656543c99571 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 6 Feb 2026 11:35:24 +1100 Subject: [PATCH] Delete defunct spec From a comment on Github: > In this particular case, the spec is broken, actually. I just looked into it and you are right that StripeSCA supports payment profiles but the spec finds that the profile is not stored. And that is because `source.try(:save_requested_by_customer?)` returns false. We only store the profile when the customer is storing their credit card info. --- spec/models/spree/payment_spec.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index 0d7c4ea8b8..83ba78d711 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -681,22 +681,6 @@ RSpec.describe Spree::Payment do end end - context "when profiles are not supported" do - it "should not create a payment profile" do - payment_method.name = 'Gateway' - payment_method.distributors << create(:distributor_enterprise) - payment_method.save! - - expect(payment_method).not_to receive :create_profile - payment = Spree::Payment.create( - amount: 100, - order: create(:order), - source: card, - payment_method: - ) - end - end - context 'when the payment was completed but now void' do let(:payment) { create(:payment, :completed, amount: 100, order:) }