From 861f2aef018c608e64dc288418ce3b157487fb3a Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 8 Aug 2023 11:53:48 +0100 Subject: [PATCH] Update product import spec --- 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 c96e4b1870..593a0de53b 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -284,7 +284,7 @@ describe ProductImport::ProductImporter do carrots = Spree::Product.find_by(name: 'Good Carrots') expect(carrots.on_hand).to eq 5 expect(carrots.variants.first.price).to eq 3.20 - expect(carrots.primary_taxon.name).to eq "Vegetables" + expect(carrots.variants.first.primary_taxon.name).to eq "Vegetables" expect(carrots.variants.first.shipping_category).to eq shipping_category expect(carrots.supplier).to eq enterprise expect(carrots.variants.first.unit_presentation).to eq "500g"