Use _path in all cases where we are not potentially changing the domain

This commit is contained in:
David Heinemeier Hansson
2025-04-13 08:17:36 +02:00
parent 7b60748796
commit dbf61f4fc3
28 changed files with 82 additions and 82 deletions
@@ -8,7 +8,7 @@ class Collections::WorkflowsControllerTest < ActionDispatch::IntegrationTest
test "update" do
collection = collections(:writebook)
patch collection_workflow_url(collection), params: { collection: { workflow_id: workflows(:on_call).id } }
patch collection_workflow_path(collection), params: { collection: { workflow_id: workflows(:on_call).id } }
assert_redirected_to cards_path(collection_ids: [ collection.id ])
assert_equal workflows(:on_call), collection.reload.workflow