summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-21 03:27:53 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-21 03:27:53 +0000
commitb900ae6107666deb601753eaa7abab0b299c006d (patch)
treef8578c5e9b06369807bc173f09b484540a99afdb /test/helpers
parent4a37bac86670e3743d9ff1ff102c5527daf32c37 (diff)
downloadredmine-b900ae6107666deb601753eaa7abab0b299c006d.tar.gz
redmine-b900ae6107666deb601753eaa7abab0b299c006d.zip
Support frozen_string_literal in test/**/*.rb (#26561).
Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17996 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 90422ca95..a524c91b8 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
@@ -1432,7 +1432,7 @@ RAW
end
def test_parse_redmine_links_should_handle_a_tag_without_attributes
- text = '<a>http://example.com</a>'
+ text = +'<a>http://example.com</a>'
expected = text.dup
parse_redmine_links(text, nil, nil, nil, true, {})
assert_equal expected, text