mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 17:17:06 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user