From 600ed78b04a94fcc5bb80f6c9a9b872bfd9e9c53 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 Dec 2022 17:45:29 +0000 Subject: [PATCH] Use CGI.escape for ruby 2.7 compatibility --- test/controllers/diary_entries_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5