Skip to content

Commit

Permalink
Merge pull request rails#54169 from zzak/re-52779
Browse files Browse the repository at this point in the history
Railties sprockets_assets_test use URI::RFC2396_PARSER instead of DEFAULT_PARSER
  • Loading branch information
kamipo authored Jan 9, 2025
2 parents df90e8e + b9a64a2 commit 86312f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/application/sprockets_assets_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86312f5

Please sign in to comment.