summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-28 17:08:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-28 17:08:16 +0000
commit2dbc3d294364b59fb0360e15185894ca657e4ddd (patch)
treed89fd1fc8bb55b43277000e69b591b10f4849770 /test
parentb20281f1515675813ade9e1284c39fd00d261365 (diff)
downloadredmine-2dbc3d294364b59fb0360e15185894ca657e4ddd.tar.gz
redmine-2dbc3d294364b59fb0360e15185894ca657e4ddd.zip
Adds Trac-Like anchors on wiki headings (#1647).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1705 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/helpers/application_helper_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index eea4a83f8..71ef572b0 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -215,10 +215,10 @@ h1. Another title
RAW
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>' +
+ '<li class="heading1"><a href="#Title">Title</a></li>' +
+ '<li class="heading2"><a href="#Subtitle">Subtitle</a></li>' +
+ '<li class="heading2"><a href="#Subtitle-with-red-text">Subtitle with red text</a></li>' +
+ '<li class="heading1"><a href="#Another-title">Another title</a></li>' +
'</ul>'
assert textilizable(raw).gsub("\n", "").include?(expected)