1
0
Fork 0
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:
Arun Agrawal 2011-10-09 15:27:35 +05:30
parent 2ed66feae0
commit 2886513aea

View file

@ -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