From f746dec537c5281d351ea9ec97f86c662c97735b Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Thu, 4 Feb 2021 13:52:45 -0800 Subject: [PATCH] update spec --- spec/models/spree/variant_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/spree/variant_spec.rb b/spec/models/spree/variant_spec.rb index 5ef2d0637f..cfd0d41d8b 100644 --- a/spec/models/spree/variant_spec.rb +++ b/spec/models/spree/variant_spec.rb @@ -637,7 +637,7 @@ module Spree describe "setting the variant's weight from the unit value" do it "sets the variant's weight when unit is weight" do p = create(:simple_product, variant_unit: 'volume') - v = create(:variant, product: p, weight: nil) + v = create(:variant, product: p, weight: 0) p.update! variant_unit: 'weight', variant_unit_scale: 1 v.update! unit_value: 10, unit_description: 'foo'