mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
URI.escape is obsolete : warning removed
This commit is contained in:
parent
2ed66feae0
commit
2886513aea
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ module ApplicationTests
|
|||
precompile!
|
||||
require "#{app_path}/config/environment"
|
||||
|
||||
get "/assets/#{URI.escape(filename)}"
|
||||
get "/assets/#{URI.parser.escape(filename)}"
|
||||
assert_match "not a image really", last_response.body
|
||||
assert File.exists?("#{app_path}/public/assets/#{filename}")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue