]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/diary_entries_controller_test.rb
Bump coverallsapp/github-action from 1.2.4 to 2.1.0
[rails.git] / test / controllers / diary_entries_controller_test.rb
index 1c0c623c8a872ae472b1f03ef2a930b0714ceae7..42d0426455262048d047748d51641c14a13f82c6 100644 (file)
@@ -671,7 +671,7 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
 
     # Try a non-integer ID
     assert_raise ActionController::RoutingError do
 
     # 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
     end
 
     # Try a deleted entry