Improve Precision of Spec for New Version of BigDecimal

This commit is contained in:
Neal Chambers
2024-10-15 11:07:26 +09:00
parent 889bec7404
commit 3302f0e78d

View File

@@ -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