From eea15089d367394c634068fc3a3a8d9a180e7a0a Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 13 Nov 2023 23:06:33 +0000 Subject: [PATCH] Updates state change tests Cancelling orders will change associated attributes such as payment_state which is triggers a new invoice --- spec/services/order_invoice_comparator_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/order_invoice_comparator_spec.rb b/spec/services/order_invoice_comparator_spec.rb index e56d4293b0..e4fcf865fa 100644 --- a/spec/services/order_invoice_comparator_spec.rb +++ b/spec/services/order_invoice_comparator_spec.rb @@ -337,9 +337,8 @@ describe OrderInvoiceComparator 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 + # order-state change is relevant both for generate and update comparator + it_behaves_like "attribute changes - order state: cancelled", true, "relevant" it_behaves_like "no attribute changes" it_behaves_like "attribute changes - special insctructions", false, "non-relevant" it_behaves_like "attribute changes - note", false, "non-relevant" @@ -362,6 +361,7 @@ describe OrderInvoiceComparator 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 + # order-state change is relevant both for generate and update comparator 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"