wip: Forging new SEO friendly routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user