mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 21:25:44 +02:00
Adds Trac-Like anchors on wiki headings (#1647).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1705 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user