From 3302f0e78d4c1f97fe6d53dd35b04d033472d2e7 Mon Sep 17 00:00:00 2001 From: Neal Chambers Date: Tue, 15 Oct 2024 11:07:26 +0900 Subject: [PATCH] Improve Precision of Spec for New Version of BigDecimal --- spec/lib/reports/sales_tax_totals_by_order_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/reports/sales_tax_totals_by_order_spec.rb b/spec/lib/reports/sales_tax_totals_by_order_spec.rb index 7987ddad0b..0e6be04375 100644 --- a/spec/lib/reports/sales_tax_totals_by_order_spec.rb +++ b/spec/lib/reports/sales_tax_totals_by_order_spec.rb @@ -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