mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
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
This commit is contained in:
parent
f404a13a20
commit
cf44fcc9f7
@ -1346,21 +1346,18 @@ RAW
|
|||||||
|
|
||||||
def test_table_of_content_should_contain_included_page_headings
|
def test_table_of_content_should_contain_included_page_headings
|
||||||
set_language_if_valid 'en'
|
set_language_if_valid 'en'
|
||||||
|
raw = <<~RAW
|
||||||
raw = <<-RAW
|
|
||||||
{{toc}}
|
{{toc}}
|
||||||
|
|
||||||
h1. Included
|
h1. Included
|
||||||
|
|
||||||
{{include(Child_1)}}
|
{{include(Child_1)}}
|
||||||
RAW
|
RAW
|
||||||
|
|
||||||
expected = '<ul class="toc">' +
|
expected = '<ul class="toc">' +
|
||||||
'<li><strong>Table of contents</strong></li>' +
|
'<li><strong>Table of contents</strong></li>' +
|
||||||
'<li><a href="#Included">Included</a></li>' +
|
'<li><a href="#Included">Included</a></li>' +
|
||||||
'<li><a href="#Child-page-1">Child page 1</a></li>' +
|
'<li><a href="#Child-page-1">Child page 1</a></li>' +
|
||||||
'</ul>'
|
'</ul>'
|
||||||
|
|
||||||
@project = Project.find(1)
|
@project = Project.find(1)
|
||||||
assert textilizable(raw).gsub("\n", "").include?(expected)
|
assert textilizable(raw).gsub("\n", "").include?(expected)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user