Re-use BackorderUpdater to complete backorder

This commit is contained in:
Maikel Linke
2024-11-27 15:04:26 +11:00
parent 4fa4eb1b4e
commit 7d7253cf0e
3 changed files with 31 additions and 69 deletions

View File

@@ -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