From 94faf4cf69e13f125f6de16dfaaaaeb3f42feb1b Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 28 Feb 2024 10:37:54 +1100 Subject: [PATCH] Fix invenrory reset strategy spec --- spec/models/product_import/inventory_reset_strategy_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/product_import/inventory_reset_strategy_spec.rb b/spec/models/product_import/inventory_reset_strategy_spec.rb index 86a0b67de4..d7e6a7abc7 100644 --- a/spec/models/product_import/inventory_reset_strategy_spec.rb +++ b/spec/models/product_import/inventory_reset_strategy_spec.rb @@ -7,7 +7,7 @@ RSpec.describe ProductImport::InventoryResetStrategy do describe '#reset' do context 'when there are excluded_items_ids' do - let(:enterprise) { variant.product.supplier } + let(:enterprise) { variant.supplier } let(:variant) { build_stubbed(:variant) } let!(:variant_override) do build_stubbed( @@ -131,7 +131,7 @@ RSpec.describe ProductImport::InventoryResetStrategy do context 'and supplier_ids is set' do let(:supplier_ids) { enterprise.id } - let(:enterprise) { variant.product.supplier } + let(:enterprise) { variant.supplier } let(:variant) { create(:variant) } context "and variant overrides with count on hand" do @@ -202,7 +202,7 @@ RSpec.describe ProductImport::InventoryResetStrategy do context 'and supplier_ids is set' do let(:supplier_ids) { enterprise.id } - let(:enterprise) { variant.product.supplier } + let(:enterprise) { variant.supplier } let(:variant) { create(:variant) } context "and variant overrides with count on hand" do