Merge pull request #3265 from arunagw/warning_uri_parser

URI.escape is obsolete : warning removed
This commit is contained in:
Vijay Dev
2011-10-10 04:34:22 -07:00

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