summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 11:39:26 +0000
commitcf44fcc9f76d19f0205792d3f6699baf4afc50d3 (patch)
treeb14feac96b34e95da9fea325a93c85b6c62541c4
parentf404a13a20db98a949cc78955da534b115221f2b (diff)
downloadredmine-cf44fcc9f76d19f0205792d3f6699baf4afc50d3.tar.gz
redmine-cf44fcc9f76d19f0205792d3f6699baf4afc50d3.zip
code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content_should_contain_included_page_headings
git-svn-id: http://svn.redmine.org/redmine/trunk@18800 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/helpers/application_helper_test.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 7aae460e0..f3b27245e 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -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