mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Fix ship method when advancing subscription order
This commit is contained in:
@@ -59,7 +59,7 @@ class SubscriptionPlacementJob
|
||||
end
|
||||
|
||||
def move_to_completion(order)
|
||||
until order.completed? do order.next! end
|
||||
AdvanceOrderService.new(order).call!
|
||||
end
|
||||
|
||||
def unavailable_stock_lines_for(order)
|
||||
|
||||
@@ -155,7 +155,7 @@ describe SubscriptionPlacementJob do
|
||||
create(:subscription, shop: shop, shipping_method: shipping_method, with_items: true)
|
||||
end
|
||||
|
||||
pending "uses the same shipping method after advancing the order" do
|
||||
it "uses the same shipping method after advancing the order" do
|
||||
job.send(:process, order)
|
||||
expect(order.state).to eq "complete"
|
||||
order.reload
|
||||
|
||||
Reference in New Issue
Block a user