update tests

This commit is contained in:
Abdellani
2024-06-07 17:57:28 +01:00
committed by zanetagebka
parent 1f74f68f20
commit 4a434873bc

View File

@@ -363,9 +363,22 @@ RSpec.describe '
} 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