summaryrefslogtreecommitdiffstats
path: root/test/functional/wiki_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-23 23:28:34 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-23 23:28:34 +0000
commit62fe933eed0cd542c978d3e77f5bfbb4d2031950 (patch)
treed38e3ddf0701c8162d85ef6be2158a3489c4e698 /test/functional/wiki_controller_test.rb
parentba7d4745e2a6489ddd33cdc827a2a095ab97fcb7 (diff)
downloadredmine-62fe933eed0cd542c978d3e77f5bfbb4d2031950.tar.gz
redmine-62fe933eed0cd542c978d3e77f5bfbb4d2031950.zip
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
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r--test/functional/wiki_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 70b892ba5..bb76f51e8 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -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