Add order_token params to the redirect URL after checkout

This commit is contained in:
Jean-Baptiste Bellet
2022-05-09 17:45:52 +02:00
parent 44965ff235
commit 61f8dfd809
2 changed files with 3 additions and 3 deletions

View File

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