diff options
-rw-r--r-- | test/helpers/application_helper_test.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f3b27245e..6ccb16aad 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1316,17 +1316,15 @@ RAW def test_table_of_content_should_generate_unique_anchors set_language_if_valid 'en' + raw = <<~RAW + {{toc}} - raw = <<-RAW -{{toc}} - -h1. Title - -h2. Subtitle + h1. Title -h2. Subtitle -RAW + h2. Subtitle + h2. Subtitle + RAW expected = '<ul class="toc">' + '<li><strong>Table of contents</strong></li>' + '<li><a href="#Title">Title</a>' + @@ -1336,7 +1334,6 @@ RAW '</ul>' + '</li>' + '</ul>' - @project = Project.find(1) result = textilizable(raw).gsub("\n", "") assert_include expected, result |