From ff449b197f2813412b4e54c287b2b16cd3299ea8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 18 Oct 2008 11:25:27 +0000 Subject: 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 --- test/unit/helpers/application_helper_test.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') 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 '

Dashes: ---

', textilizable('Dashes: ---') end + def test_footnotes + raw = <<-RAW +This is some text[1]. + +fn1. This is the foot note +RAW + + expected = <<-EXPECTED +

This is some text1.

+

1 This is the foot note

+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}} -- cgit v1.2.3