From 0d5d4aca11a7dcabca8a8696534752a419aa19de Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 8 Feb 2021 18:13:57 +0000 Subject: [PATCH] Update tax_rate_factory The amount is a decimal, so `0.1` here is actually a 10% tax rate. `100` is ridiculous (10000% tax). Also, the factory fails without a calculator, and it should explicitly be a DefaultTax calculator or it will not be correct. --- spec/factories/tax_rate_factory.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/factories/tax_rate_factory.rb b/spec/factories/tax_rate_factory.rb index 2cb9f6e780..fa72254674 100644 --- a/spec/factories/tax_rate_factory.rb +++ b/spec/factories/tax_rate_factory.rb @@ -3,7 +3,8 @@ FactoryBot.define do factory :tax_rate, class: Spree::TaxRate do zone - amount { 100.00 } + amount { 0.1 } tax_category + association(:calculator, factory: :default_tax_calculator, strategy: :build) end end