Use _path in all cases where we are not potentially changing the domain
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user