From 2004abc8bec22d6b4f2aa63506bc6874f744db3d Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 18 Oct 2023 11:09:25 +0100 Subject: [PATCH] Sets pending test - issue #11350 changing the payment_total should not generate a new invoice; rather, it should update the current invoice --- spec/services/order_invoice_comparator_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/services/order_invoice_comparator_spec.rb b/spec/services/order_invoice_comparator_spec.rb index 5d90014e2c..b4c8a7ff67 100644 --- a/spec/services/order_invoice_comparator_spec.rb +++ b/spec/services/order_invoice_comparator_spec.rb @@ -329,7 +329,6 @@ describe OrderInvoiceComparator do context "changes on the order object" do describe "detecting relevant" do - it_behaves_like "attribute changes - payment total", true, "relevant" it_behaves_like "attribute changes - order total", true, "relevant" it_behaves_like "attribute changes - tax total changes", true, "relevant", false it_behaves_like "attribute changes - tax total changes", true, "relevant", true @@ -342,6 +341,9 @@ describe OrderInvoiceComparator do end describe "detecting non-relevant" do + it_behaves_like "attribute changes - payment total", false, "relevant" do + before { pending("a payment capture shouldn't trigger a new invoice - issue #11350") } + end it_behaves_like "attribute changes - order state: cancelled", false, "non-relevant" do before { pending } end @@ -371,6 +373,9 @@ describe OrderInvoiceComparator do context "changes on the order object" do describe "detecting relevant" do + it_behaves_like "attribute changes - payment total", true, "relevant" do + before { pending("a payment capture shouldn't trigger a new invoice - issue #11350") } + end it_behaves_like "attribute changes - order state: cancelled", true, "relevant" it_behaves_like "attribute changes - special insctructions", true, "relevant" it_behaves_like "attribute changes - note", true, "relevant" @@ -379,7 +384,6 @@ describe OrderInvoiceComparator do end describe "detecting non-relevant" do - it_behaves_like "attribute changes - payment total", false, "non-relevant" it_behaves_like "attribute changes - order total", false, "non-relevant" it_behaves_like "attribute changes - tax total changes", false, "non-relevant", false it_behaves_like "attribute changes - tax total changes", false, "non-relevant", true