Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Jun 7, 2024
1 parent 55365be commit b0862d2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions spec/system/admin/orders/bulk_actions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0862d2

Please sign in to comment.