mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fix prod importer spec in rails 4.1
This commit is contained in:
@@ -484,7 +484,7 @@ describe ProductImport::ProductImporter do
|
||||
expect(importer.inventory_updated_count).to eq 0
|
||||
expect(importer.updated_ids.count).to eq 2
|
||||
|
||||
products = Spree::Product.find_all_by_name('Bag of Oats')
|
||||
products = Spree::Product.where(name: 'Bag of Oats')
|
||||
|
||||
expect(products.count).to eq 1
|
||||
expect(products.first.variants.count).to eq 5
|
||||
|
||||
Reference in New Issue
Block a user