From 258a9efa0d7f764264a1c31bf36d030e345344b8 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 5 Apr 2019 22:09:46 +0100 Subject: [PATCH] =?UTF-8?q?Adapt=20product=5Fimporter=5Fspec=20to=20ofn=20?= =?UTF-8?q?v2=20where=20there=E2=80=99s=20no=20product.count=5Fon=5Fhand?= =?UTF-8?q?=20and=20on=5Fhand=20does=20not=20default=20to=20infinity=20if?= =?UTF-8?q?=20product.on=5Fdemand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/models/product_importer_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index 41f6ed865f..d5c6522aa4 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -124,8 +124,7 @@ describe ProductImport::ProductImporter do buns = Spree::Product.find_by_name('Hot Cross Buns') expect(buns.supplier).to eq enterprise - expect(buns.on_hand).to eq Float::INFINITY - expect(buns.count_on_hand).to eq 0 + expect(buns.on_hand).to eq 0 expect(buns.price).to eq 3.50 expect(buns.unit_value).to eq 1 expect(buns.variant_unit).to eq 'items'