mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix orders controller spec
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user