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 = '' - @project = Project.find(1) assert textilizable(raw).gsub("\n", "").include?(expected) end