mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
Fix variants stock level sevice specs
This commit is contained in:
@@ -53,7 +53,7 @@ RSpec.describe VariantsStockLevels do
|
||||
|
||||
describe "when the variant has an override" do
|
||||
let!(:distributor) { create(:distributor_enterprise) }
|
||||
let(:supplier) { variant_in_the_order.product.supplier }
|
||||
let(:supplier) { variant_in_the_order.supplier }
|
||||
let!(:order_cycle) {
|
||||
create(:simple_order_cycle, suppliers: [supplier], distributors: [distributor],
|
||||
variants: [variant_in_the_order, variant_not_in_the_order])
|
||||
|
||||
Reference in New Issue
Block a user