From abeb0d7f45add7d21d167ce5c43c37486fa7ccd7 Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 10 Dec 2024 18:12:18 +0000 Subject: [PATCH] Redirect will always use ID not slug --- test/integration/identifier_resolution_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/identifier_resolution_test.rb b/test/integration/identifier_resolution_test.rb index 53722a8b1..0b944d9e9 100644 --- a/test/integration/identifier_resolution_test.rb +++ b/test/integration/identifier_resolution_test.rb @@ -7,7 +7,7 @@ class IdentifierResolutionTest < ActionDispatch::IntegrationTest get "/resolve/e#{event.id}" - assert_redirected_to event + assert_redirected_to event_path(event.id) follow_redirect! @@ -19,7 +19,7 @@ class IdentifierResolutionTest < ActionDispatch::IntegrationTest get "/resolve/m#{material.id}" - assert_redirected_to material + assert_redirected_to material_path(material.id) end test 'resolve content provider' do @@ -27,7 +27,7 @@ class IdentifierResolutionTest < ActionDispatch::IntegrationTest get "/resolve/p#{content_provider.id}" - assert_redirected_to content_provider + assert_redirected_to content_provider_path(content_provider.id) end test 'resolve workflow' do @@ -35,7 +35,7 @@ class IdentifierResolutionTest < ActionDispatch::IntegrationTest get "/resolve/w#{workflow.id}" - assert_redirected_to workflow + assert_redirected_to workflow_path(workflow.id) end test 'ignores prefix when resolving' do @@ -43,11 +43,11 @@ class IdentifierResolutionTest < ActionDispatch::IntegrationTest get "/resolve/tess:m#{material.id}" - assert_redirected_to material + assert_redirected_to material_path(material.id) get "/resolve/batman:m#{material.id}" - assert_redirected_to material + assert_redirected_to material_path(material.id) end test 'does not resolve bad identifier' do