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