mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Remove distributors from product in completed_order_with_fees factory. This setter is no longer available after product distributions has been deleted
This commit is contained in:
@@ -420,7 +420,7 @@ FactoryBot.define do
|
||||
|
||||
after(:create) do |order, evaluator|
|
||||
create(:line_item, order: order)
|
||||
product = create(:simple_product, distributors: [order.distributor])
|
||||
product = create(:simple_product)
|
||||
create(:line_item, order: order, product: product)
|
||||
|
||||
payment_calculator = build(:calculator_per_item, preferred_amount: evaluator.payment_fee)
|
||||
|
||||
Reference in New Issue
Block a user