]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 11:40:36 +0000 (11:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 11:40:36 +0000 (11:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18806 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index e81b380251e4ede09d7bd14878fbe8210f82b675..6103e1d5f541e915160460d7d3237e84d5f0a8d5 100644 (file)
@@ -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