diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-14 22:01:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-03-14 22:01:43 +0000 |
commit | 3328a1fc37fe73357f1e3f22024fa08aab53b522 (patch) | |
tree | 9a5f37af7acb296af520bbb0c96fd0cf743728a1 /test/unit/helpers | |
parent | 36dbb3906b322b385575ff5d71768a092d4688cf (diff) | |
download | redmine-3328a1fc37fe73357f1e3f22024fa08aab53b522.tar.gz redmine-3328a1fc37fe73357f1e3f22024fa08aab53b522.zip |
Use names instead of ids for wiki anchors (#6905).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5135 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 6d46aedf0..5cb2c4cc1 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -526,6 +526,13 @@ EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') end + def test_headings + raw = 'h1. Some heading' + expected = %|<a name="Some-heading"></a>\n<h1 >Some heading<a href="#Some-heading" class="wiki-anchor">¶</a></h1>| + + assert_equal expected, textilizable(raw) + end + def test_table_of_content raw = <<-RAW {{toc}} |