From fa6cf0f281494928b31c21a80c9671f34cfbf18a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 16 Oct 2020 00:26:12 +0100 Subject: [PATCH] Fix prod importer spec in rails 4.1 --- spec/models/product_importer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index 9c556045c7..ccc6c3e5a2 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -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