mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Improve Precision of Spec for New Version of BigDecimal
This commit is contained in:
@@ -145,7 +145,7 @@ RSpec.describe "Reporting::Reports::SalesTax::SalesTaxTotalsByOrder" do
|
||||
total = report.total_excl_tax(query_row)
|
||||
|
||||
# discounted order total - discounted order tax
|
||||
expect(total).to eq((113.3 - 10) - (3.3 - 0.29))
|
||||
expect(total).to eq((BigDecimal('113.3') - 10) - (BigDecimal('3.3') - BigDecimal('0.29')))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user