mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Removes unnecessary && operator
reloads instead of saving order again
This commit is contained in:
@@ -53,7 +53,8 @@ describe OrderInvoiceComparator do
|
||||
|
||||
it "returns returns true" do
|
||||
Spree::TaxRate.first.update!(amount: 0.15)
|
||||
order.create_tax_charge! && order.save
|
||||
order.create_tax_charge!
|
||||
order.reload
|
||||
expect(subject).to be true
|
||||
end
|
||||
end
|
||||
@@ -70,7 +71,8 @@ describe OrderInvoiceComparator do
|
||||
|
||||
it "returns returns true" do
|
||||
Spree::TaxRate.first.update!(amount: 0.15)
|
||||
order.create_tax_charge! && order.save
|
||||
order.create_tax_charge!
|
||||
order.reload
|
||||
expect(subject).to be true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user