From 315f951f8fcf72eab7f90e9bb88c6d270e388492 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 20 May 2024 16:00:34 +1000 Subject: [PATCH] Fix order cycle complex editing system spec --- .../order_cycles/complex_editing_multiple_product_pages_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/order_cycles/complex_editing_multiple_product_pages_spec.rb b/spec/system/admin/order_cycles/complex_editing_multiple_product_pages_spec.rb index 993ad50b65..fca4b55f11 100644 --- a/spec/system/admin/order_cycles/complex_editing_multiple_product_pages_spec.rb +++ b/spec/system/admin/order_cycles/complex_editing_multiple_product_pages_spec.rb @@ -13,7 +13,7 @@ RSpec.describe ' describe "editing an order cycle with multiple pages of products" do let(:order_cycle) { create(:order_cycle) } let(:supplier_enterprise) { order_cycle.exchanges.incoming.first.sender } - let!(:new_product) { create(:product, supplier: supplier_enterprise) } + let!(:new_product) { create(:product, supplier_id: supplier_enterprise.id) } before do stub_const("#{Api::V0::ExchangeProductsController}::DEFAULT_PER_PAGE", 1)