mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
Re-use BackorderUpdater to complete backorder
This commit is contained in:
@@ -110,8 +110,10 @@ RSpec.describe BackorderUpdater do
|
||||
end
|
||||
|
||||
describe "#distributed_linked_variants" do
|
||||
let(:order_cycle) { order.order_cycle }
|
||||
|
||||
it "selects available variants with semantic links" do
|
||||
variants = subject.distributed_linked_variants(order)
|
||||
variants = subject.distributed_linked_variants(order_cycle, distributor)
|
||||
expect(variants).to match_array [beans, chia_seed]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user