summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-27 10:23:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-27 10:23:07 +0000
commit1721376542af256263d605a16c3981eca9e3733a (patch)
treee85300b4b791f4d90816e7fa82be87d0f8f2ade7
parentec7d1359301b28a506d3c9e9ad5785cf84d3fcd9 (diff)
downloadredmine-1721376542af256263d605a16c3981eca9e3733a.tar.gz
redmine-1721376542af256263d605a16c3981eca9e3733a.zip
Fixes tests (r1693).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1700 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/helpers/application_helper_test.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 9559b76cc..eea4a83f8 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -214,14 +214,14 @@ h1. Another title
RAW
- expected = '<div class="toc">' +
- '<a href="#1" class="heading1">Title</a>' +
- '<a href="#2" class="heading2">Subtitle</a>' +
- '<a href="#3" class="heading2">Subtitle with red text</a>' +
- '<a href="#4" class="heading1">Another title</a>' +
- '</div>'
+ expected = '<ul class="toc">' +
+ '<li class="heading1"><a href="#1">Title</a></li>' +
+ '<li class="heading2"><a href="#2">Subtitle</a></li>' +
+ '<li class="heading2"><a href="#3">Subtitle with red text</a></li>' +
+ '<li class="heading1"><a href="#4">Another title</a></li>' +
+ '</ul>'
- assert textilizable(raw).include?(expected)
+ assert textilizable(raw).gsub("\n", "").include?(expected)
end
def test_blockquote