From b0862d26f633cf497c4df71330982b28754d1952 Mon Sep 17 00:00:00 2001 From: Abdellani Date: Fri, 7 Jun 2024 17:57:28 +0100 Subject: [PATCH] update tests --- spec/system/admin/orders/bulk_actions_spec.rb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/orders/bulk_actions_spec.rb b/spec/system/admin/orders/bulk_actions_spec.rb index e93cfe4b5f2..72ccc44d959 100644 --- a/spec/system/admin/orders/bulk_actions_spec.rb +++ b/spec/system/admin/orders/bulk_actions_spec.rb @@ -363,9 +363,22 @@ } must have a valid ABN before invoices can be used." end end - it_behaves_like "should not print the invoice" - context "with legal invoices feature", feature: :invoices do + context "ABN is null" do + it_behaves_like "should not print the invoice" + context "with legal invoices feature", feature: :invoices do + it_behaves_like "should not print the invoice" + end + end + context "ABN is empty string" do + before do + order4.distributor.update(abn: "123456789") + order5.distributor.update(abn: "") + end + it_behaves_like "should not print the invoice" + context "with legal invoices feature", feature: :invoices do + it_behaves_like "should not print the invoice" + end end end end