Fix shady use of BigDecimal

This commit is contained in:
Matt-Yorkley
2021-06-17 15:51:06 +01:00
parent e4cf6421bd
commit a7d873356d

View File

@@ -76,7 +76,7 @@ module OrderManagement
allow(subject).to receive(:shipping_methods).and_return(shipping_methods)
expected_costs = %w[3.00 4.00 5.00].map(&BigDecimal.method(:new))
expected_costs = [3.00, 4.00, 5.00]
expect(subject.shipping_rates(package).map(&:cost)).to eq expected_costs
end