summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-29 18:21:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-29 18:21:22 +0000
commitaf7006dff6f8ee4e74a3ec793fe0457f2d5a41e7 (patch)
treeeb1be618ce13bab186114d35cc8ddbdc809bf717 /test/unit/helpers
parent0025a6620087824486f7508a8c6f56351a676cc1 (diff)
downloadredmine-af7006dff6f8ee4e74a3ec793fe0457f2d5a41e7.tar.gz
redmine-af7006dff6f8ee4e74a3ec793fe0457f2d5a41e7.zip
Fixed: partial toc when text contains pre tags (#7172).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4578 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r--test/unit/helpers/application_helper_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 4610bee3c..5f5eefa19 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -428,7 +428,11 @@ Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor.
h2. Subtitle with [[Wiki|another Wiki]] link
h2. Subtitle with %{color:red}red text%
-
+
+<pre>
+some code
+</pre>
+
h3. Subtitle with *some* _modifiers_
h1. Another title
@@ -464,7 +468,7 @@ RAW
'</ul>'
@project = Project.find(1)
- assert textilizable(raw).gsub("\n", "").include?(expected)
+ assert textilizable(raw).gsub("\n", "").include?(expected), textilizable(raw)
end
def test_table_of_content_should_contain_included_page_headings