Adapt product_importer_spec to ofn v2 where there’s no product.count_on_hand and on_hand does not default to infinity if product.on_demand

This commit is contained in:
luisramos0
2019-04-05 22:09:46 +01:00
parent bb4cec1186
commit 258a9efa0d

View File

@@ -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'