mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user