summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-19 15:43:55 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-19 15:43:55 +0000
commit26509e7f4c6dae94baf291b95d46eb6ec8ebca0b (patch)
treeeca8843de4ca00c229612e8f4f323a5474444a29 /test/helpers
parent7d2f10ccac0e51a8eb337ed388ab8182df4c25e1 (diff)
downloadredmine-26509e7f4c6dae94baf291b95d46eb6ec8ebca0b.tar.gz
redmine-26509e7f4c6dae94baf291b95d46eb6ec8ebca0b.zip
Decode hexadecimal-encoded literals in order to be frozen string literals friendly (#31004).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/application_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 619a9e544..1ae34a9f2 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -37,7 +37,7 @@ class ApplicationHelperTest < Redmine::HelperTest
def setup
super
set_tmp_attachments_directory
- @russian_test = "\xd1\x82\xd0\xb5\xd1\x81\xd1\x82".force_encoding('UTF-8')
+ @russian_test = 'тест'
end
test "#link_to_if_authorized for authorized user should allow using the :controller and :action for the target link" do
@@ -1792,7 +1792,7 @@ RAW
end
def test_truncate_single_line_non_ascii
- ja = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e".force_encoding('UTF-8')
+ ja = '日本語'
result = truncate_single_line_raw("#{ja}\n#{ja}\n#{ja}", 10)
assert_equal "#{ja} #{ja}...", result
assert !result.html_safe?