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