diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-18 11:25:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-18 11:25:27 +0000 |
commit | ff449b197f2813412b4e54c287b2b16cd3299ea8 (patch) | |
tree | 7853b52e721884c4bc988630ca6ffbd0f5bb6009 /test | |
parent | a0c29d8f99c4b055cd5463703a9a71b1ff0a7bba (diff) | |
download | redmine-ff449b197f2813412b4e54c287b2b16cd3299ea8.tar.gz redmine-ff449b197f2813412b4e54c287b2b16cd3299ea8.zip |
Fixed: textile footnotes no longer work after r1113 (#974).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index cbdba5971..c3e8ca2d7 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -219,6 +219,21 @@ class ApplicationHelperTest < HelperTestCase assert_equal '<p>Dashes: ---</p>', textilizable('Dashes: ---') end + def test_footnotes + raw = <<-RAW +This is some text[1]. + +fn1. This is the foot note +RAW + + expected = <<-EXPECTED +<p>This is some text<sup><a href=\"#fn1\">1</a></sup>.</p> +<p id="fn1" class="footnote"><sup>1</sup> This is the foot note</p> +EXPECTED + + assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') + end + def test_table_of_content raw = <<-RAW {{toc}} |