mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Fix invenrory reset strategy spec
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user