mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-25 01:23:23 +00:00
Add order_token params to the redirect URL after checkout
This commit is contained in:
@@ -227,7 +227,7 @@ describe SplitCheckoutController, type: :controller do
|
||||
it "completes the order and redirects to order confirmation" do
|
||||
put :update, params: params
|
||||
|
||||
expect(response).to redirect_to order_path(order)
|
||||
expect(response).to redirect_to order_path(order, order_token: order.token)
|
||||
expect(order.reload.state).to eq "complete"
|
||||
end
|
||||
end
|
||||
@@ -255,7 +255,7 @@ describe SplitCheckoutController, type: :controller do
|
||||
it "completes the order and redirects to order confirmation" do
|
||||
put :update, params: params
|
||||
|
||||
expect(response).to redirect_to order_path(order)
|
||||
expect(response).to redirect_to order_path(order, order_token: order.token)
|
||||
expect(order.reload.state).to eq "complete"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user