From e0031225d1be2ad43472d64f37ef905ce0524e80 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 30 Aug 2023 13:25:04 +0100 Subject: [PATCH] Covers order special instruction --- spec/services/order_invoice_comparator_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/services/order_invoice_comparator_spec.rb b/spec/services/order_invoice_comparator_spec.rb index 22dd5cdb3f..86b26dc91f 100644 --- a/spec/services/order_invoice_comparator_spec.rb +++ b/spec/services/order_invoice_comparator_spec.rb @@ -57,6 +57,11 @@ describe OrderInvoiceComparator do expect(subject).to be true end + it "returns false if a non-relevant attribute changes" do + order.update!(special_instructions: "A very special insctruction.") + expect(subject).to be false + end + it "returns false if a non-relevant attribute changes" do order.update!(note: "THIS IS A NEW NOTE") expect(subject).to be false