]> source.dussan.org Git - redmine.git/commitdiff
Fixed failing test on CommonMark by striping the trailing whitespace returned by...
authorMarius Balteanu <marius.balteanu@zitec.com>
Wed, 11 Aug 2021 21:51:23 +0000 (21:51 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Wed, 11 Aug 2021 21:51:23 +0000 (21:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21164 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb

index 9e4896e95beaba7598d3c1cd31314061930512d5..b92121c5548c18b32b27fb7af2308012bbfbdd81 100644 (file)
@@ -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 = [