]> 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:39:26 +0000 (11:39 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 11:39:26 +0000 (11:39 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18800 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index 7aae460e09e6a58745f2949e77b823877937ba2c..f3b27245ee85a16a273bf6188a09beb41923f690 100644 (file)
@@ -1346,21 +1346,18 @@ RAW
 
   def test_table_of_content_should_contain_included_page_headings
     set_language_if_valid 'en'
+    raw = <<~RAW
+      {{toc}}
 
-    raw = <<-RAW
-{{toc}}
-
-h1. Included
-
-{{include(Child_1)}}
-RAW
+      h1. Included
 
+      {{include(Child_1)}}
+    RAW
     expected = '<ul class="toc">' +
                '<li><strong>Table of contents</strong></li>' +
                '<li><a href="#Included">Included</a></li>' +
                '<li><a href="#Child-page-1">Child page 1</a></li>' +
                '</ul>'
-
     @project = Project.find(1)
     assert textilizable(raw).gsub("\n", "").include?(expected)
   end