summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:51:23 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:51:23 +0000
commitc1b3804555994cb81ba6742894124f9d8c42e05c (patch)
treec66e438a71fe4c4f206c6482f465d16ef92624c5 /test
parentd92b75d49e590ea97f7fc63fbea61b2b6b5edf13 (diff)
downloadredmine-c1b3804555994cb81ba6742894124f9d8c42e05c.tar.gz
redmine-c1b3804555994cb81ba6742894124f9d8c42e05c.zip
Fixed failing test on CommonMark by striping the trailing whitespace returned by the footnote (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21164 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
index 9e4896e95..b92121c55 100644
--- a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb
@@ -149,7 +149,7 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase
</ol>
EXPECTED
- assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '')
+ assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '').rstrip
end
STR_WITH_PRE = [