X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/27e9965dd2d7476ea8242c8c646976b698cc9e8e..ce00b921cb6a65ad58767ef1dcf8efc6489bb5f2:/test/controllers/diary_entries_controller_test.rb?ds=inline 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