summaryrefslogtreecommitdiffstats
path: root/test/helpers/application_helper_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:40:36 +0000
commitba370734a9e7ce6de8396dd66aec5dc96293bf2b (patch)
tree316c15ab73ecab46ade0550a15b5b62f47141d56 /test/helpers/application_helper_test.rb
parent7cae439d099be83d0edb6dcd13ef555b12b2bf23 (diff)
downloadredmine-ba370734a9e7ce6de8396dd66aec5dc96293bf2b.tar.gz
redmine-ba370734a9e7ce6de8396dd66aec5dc96293bf2b.zip
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_pre_content_should_not_parse_wiki_and_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@18806 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers/application_helper_test.rb')
-rw-r--r--test/helpers/application_helper_test.rb35
1 files changed, 16 insertions, 19 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index e81b38025..6103e1d5f 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1098,18 +1098,17 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_pre_content_should_not_parse_wiki_and_redmine_links
- raw = <<-RAW
-[[CookBook documentation]]
-
-#1
+ raw = <<~RAW
+ [[CookBook documentation]]
-<pre>
-[[CookBook documentation]]
+ #1
-#1
-</pre>
-RAW
+ <pre>
+ [[CookBook documentation]]
+ #1
+ </pre>
+ RAW
result1 = link_to("CookBook documentation",
"/projects/ecookbook/wiki/CookBook_documentation",
:class => "wiki-page")
@@ -1117,17 +1116,15 @@ RAW
"/issues/1",
:class => Issue.find(1).css_classes,
:title => "Bug: Cannot print recipes (New)")
+ expected = <<~EXPECTED
+ <p>#{result1}</p>
+ <p>#{result2}</p>
+ <pre>
+ [[CookBook documentation]]
- expected = <<-EXPECTED
-<p>#{result1}</p>
-<p>#{result2}</p>
-<pre>
-[[CookBook documentation]]
-
-#1
-</pre>
-EXPECTED
-
+ #1
+ </pre>
+ EXPECTED
@project = Project.find(1)
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
end