Skip to content

Commit b9a64a2

Browse files
committed
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
1 parent 79df80b commit b9a64a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/application/sprockets_assets_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ class User < ActiveRecord::Base; raise 'should not be reached'; end
348348
# Load app env
349349
app "development"
350350

351-
get "/assets/#{URI::DEFAULT_PARSER.escape(asset_path)}"
351+
get "/assets/#{URI::RFC2396_PARSER.escape(asset_path)}"
352352
assert_match "not an image really", last_response.body
353353
assert_file_exists("#{app_path}/public/assets/#{asset_path}")
354354
end

0 commit comments

Comments
 (0)