Fix prod importer spec in rails 4.1

This commit is contained in:
Luis Ramos
2020-10-16 00:26:12 +01:00
committed by Matt-Yorkley
parent 7e39d78733
commit fa6cf0f281

View File

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