From b9a64a2cc3140fed14ae3b0385f4b39ce2acd2c4 Mon Sep 17 00:00:00 2001 From: zzak Date: Thu, 9 Jan 2025 20:41:30 +0900 Subject: [PATCH] Railties sprockets_assets_test use URI::RFC2396_PARSER instead of DEFAULT_PARSER ``` test/application/sprockets_assets_test.rb:351: warning: URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly. ``` ref: https://buildkite.com/rails/rails/builds/115455#0194455d-a2e2-4f4c-add1-3eb69bdf0b6a/1282-1902 --- railties/test/application/sprockets_assets_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/test/application/sprockets_assets_test.rb b/railties/test/application/sprockets_assets_test.rb index b9a2209ab77b5..627d69eba487b 100644 --- a/railties/test/application/sprockets_assets_test.rb +++ b/railties/test/application/sprockets_assets_test.rb @@ -348,7 +348,7 @@ class User < ActiveRecord::Base; raise 'should not be reached'; end # Load app env app "development" - get "/assets/#{URI::DEFAULT_PARSER.escape(asset_path)}" + get "/assets/#{URI::RFC2396_PARSER.escape(asset_path)}" assert_match "not an image really", last_response.body assert_file_exists("#{app_path}/public/assets/#{asset_path}") end