Fix orders controller spec

This commit is contained in:
Gaetan Craig-Riou
2024-03-14 13:58:12 +11:00
parent 93922b484f
commit f38e13b1a0

View File

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