diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 6ccb16aad..316137a78 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1252,38 +1252,36 @@ EXPECTED def test_table_of_content set_language_if_valid 'en' + raw = <<~RAW + {{toc}} - raw = <<-RAW -{{toc}} + h1. Title -h1. Title + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + h2. Subtitle with a [[Wiki]] link -h2. Subtitle with a [[Wiki]] link + Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. -Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. + h2. Subtitle with [[Wiki|another Wiki]] link -h2. Subtitle with [[Wiki|another Wiki]] link + h2. Subtitle with %{color:red}red text% -h2. Subtitle with %{color:red}red text% +
+ some code +-
-some code -+ h3. Subtitle with *some* _modifiers_ -h3. Subtitle with *some* _modifiers_ + h3. Subtitle with @inline code@ -h3. Subtitle with @inline code@ + h1. Another title -h1. Another title + h3. An "Internet link":http://www.redmine.org/ inside subtitle -h3. An "Internet link":http://www.redmine.org/ inside subtitle - -h2. "Project Name !/attachments/1234/logo_small.gif! !/attachments/5678/logo_2.png!":/projects/projectname/issues - -RAW + h2. "Project Name !/attachments/1234/logo_small.gif! !/attachments/5678/logo_2.png!":/projects/projectname/issues + RAW expected = '