From f38e13b1a0f187220e10dc8028554e2c191272d0 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Thu, 14 Mar 2024 13:58:12 +1100 Subject: [PATCH] Fix orders controller spec --- spec/controllers/spree/orders_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/spree/orders_controller_spec.rb b/spec/controllers/spree/orders_controller_spec.rb index f1f47762c2..e4eeb84b8c 100644 --- a/spec/controllers/spree/orders_controller_spec.rb +++ b/spec/controllers/spree/orders_controller_spec.rb @@ -283,7 +283,7 @@ RSpec.describe Spree::OrdersController, type: :controller do let(:order_cycle) { create(:simple_order_cycle, distributors: [distributor]) } let(:enterprise_fee) { create(:enterprise_fee, calculator: build(:calculator_per_item) ) } let!(:exchange) { - create(:exchange, incoming: true, sender: variant1.product.supplier, + create(:exchange, incoming: true, sender: variant1.supplier, receiver: order_cycle.coordinator, variants: [variant1, variant2], enterprise_fees: [enterprise_fee]) }