Browse files

Merge pull request #3265 from arunagw/warning_uri_parser

URI.escape is obsolete : warning removed
  • Loading branch information...
2 parents c3c1571 + 2886513 commit b27ca99b7bd35a7f8e79475c8ea4a1b0bbf5fd11 @vijaydev vijaydev committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/application/assets_test.rb
View
2 railties/test/application/assets_test.rb
@@ -296,7 +296,7 @@ class ::PostsController < ActionController::Base ; end
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

0 comments on commit b27ca99

Please sign in to comment.