X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/27e9965dd2d7476ea8242c8c646976b698cc9e8e..c376962c9cc08d7787c28e447705c19242c0d638:/test/controllers/diary_entries_controller_test.rb diff --git a/test/controllers/diary_entries_controller_test.rb b/test/controllers/diary_entries_controller_test.rb index 1c0c623c8..42d042645 100644 --- a/test/controllers/diary_entries_controller_test.rb +++ b/test/controllers/diary_entries_controller_test.rb @@ -671,7 +671,7 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest # Try a non-integer ID assert_raise ActionController::RoutingError do - get "/user/#{CGI.escapeURIComponent(user.display_name)}/diary/#{diary_entry.id})" + get "/user/#{CGI.escape(user.display_name)}/diary/#{diary_entry.id})" end # Try a deleted entry