Permalink
Browse files

URI.escape is obsolete : warning removed

  • Loading branch information...
1 parent 2ed66fe commit 2886513aea90257d69c02bf77a50884a5b2ba82b @arunagw arunagw committed Oct 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 2886513

Please sign in to comment.