Fix variants stock level sevice specs

This commit is contained in:
Gaetan Craig-Riou
2024-03-14 14:27:27 +11:00
parent df209fdc2b
commit f8c2dfb3f7

View File

@@ -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])