wip: Forging new SEO friendly routes

This commit is contained in:
kbe
2025-09-06 03:23:05 +02:00
parent d9d43f45e5
commit 2f799936c5
5 changed files with 12 additions and 10 deletions

View File

@@ -222,7 +222,7 @@ class OrdersControllerTest < ActionDispatch::IntegrationTest
# === Retry Payment Tests ===
test "should allow retry payment for retryable order" do
post order_retry_payment_path(@order)
post payment_retry_path(@order)
assert_redirected_to order_checkout_path(@order)
end
@@ -230,7 +230,7 @@ class OrdersControllerTest < ActionDispatch::IntegrationTest
# Make order non-retryable (too many attempts)
@order.update!(payment_attempts: Order::MAX_PAYMENT_ATTEMPTS)
post order_retry_payment_path(@order)
post payment_retry_path(@order)
assert_redirected_to event_path(@event.slug, @event)
assert_match /ne peut plus être payée/, flash[:alert]
end
@@ -302,7 +302,7 @@ class OrdersControllerTest < ActionDispatch::IntegrationTest
assert_not_nil order_create_path(@event.slug, @event.id)
assert_not_nil order_path(@order)
assert_not_nil order_checkout_path(@order)
assert_not_nil order_retry_payment_path(@order)
assert_not_nil payment_retry_path(@order)
assert_not_nil order_increment_payment_attempt_path(@order)
end
end