From 3d09ac01ccdd199a1b4dd6c5fcdcf95afd60c944 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Mon, 25 Nov 2024 17:29:27 +0500 Subject: [PATCH] 12968: fix existing specs - As per the new changes, unit_type change will create a new product rather than give errors. - on bulk-update screen as well, two products can have same name with different unit_type --- spec/models/product_importer_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/product_importer_spec.rb b/spec/models/product_importer_spec.rb index 60d42c6154..a2a2917f20 100644 --- a/spec/models/product_importer_spec.rb +++ b/spec/models/product_importer_spec.rb @@ -578,11 +578,11 @@ RSpec.describe ProductImport::ProductImporter do describe "updating non-updatable fields on existing variants" do let(:csv_data) { CSV.generate do |csv| - csv << ["name", "producer", "category", "on_hand", "price", "units", "unit_type", + csv << ["name", "producer", "category", "on_hand", "price", "units", "variant_unit_name", "shipping_category"] - csv << ["Beetroot", enterprise3.name, "Vegetables", "5", "3.50", "500", "Kg", + csv << ["Beetroot", enterprise3.name, "Vegetables", "5", "3.50", "500", "Half", shipping_category.name] - csv << ["Tomato", enterprise3.name, "Vegetables", "6", "5.50", "500", "Kg", + csv << ["Tomato", enterprise3.name, "Vegetables", "6", "5.50", "500", "Half", shipping_category.name] end }