From: Marius Balteanu Date: Wed, 11 Aug 2021 21:51:23 +0000 (+0000) Subject: Fixed failing test on CommonMark by striping the trailing whitespace returned by... X-Git-Tag: 5.0.0~281 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1b3804555994cb81ba6742894124f9d8c42e05c;p=redmine.git 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 --- 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 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 = [