diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 669e622e0..c78bbc5a3 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -601,17 +601,15 @@ STR end def test_footnotes - text = <<-STR -This is some text[1]. - -fn1. This is the foot note -STR - - expected = <<-EXPECTED -
This is some text1.
-1 This is the foot note
-EXPECTED + text = <<~STR + This is some text[1]. + fn1. This is the foot note + STR + expected = <<~EXPECTED +This is some text1.
+1 This is the foot note
+ EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') end