Ruby 2.7: Remove deprecated URI.escape/unescape (#32752).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19455 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-01-23 23:28:34 +00:00
parent ba7d4745e2
commit 62fe933eed
5 changed files with 9 additions and 14 deletions

View File

@@ -1149,7 +1149,7 @@ class WikiControllerTest < Redmine::ControllerTest
@request.user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063'
get :show, :params => {:project_id => 1, :id => title, :format => format}
assert_response :success
filename = URI.encode("#{title}.#{format}")
filename = Addressable::URI.encode("#{title}.#{format}")
assert_equal "attachment; filename=\"#{filename}\"",
@response.headers['Content-Disposition']
end