From 0fb726c1cae126ba7712adeb27d2c988beaec807 Mon Sep 17 00:00:00 2001 From: Ko Nagase Date: Sat, 25 Sep 2021 15:28:53 +0000 Subject: Patch for fix/common-mark-test --- .../wiki_formatting/common_mark/formatter_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 cd5e89931..1ee2136d2 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 @@ -147,16 +147,16 @@ class Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase [^1]: This is the foot note STR - expected = <<~EXPECTED -

This is some text1.

+ expected = <<~'EXPECTED' +

This is some text1<\/a><\/sup>\.

    -
  1. -

    This is the foot note

    -
  2. -
+ +

This is the foot note

+ <\/li> + <\/ol> EXPECTED - assert_equal expected.gsub(%r{[\r\n\t]}, ''), format(text).gsub(%r{[\r\n\t]}, '').rstrip + assert_match %r{#{expected.gsub(%r{[\r\n\t]}, '')}}, format(text).gsub(%r{[\r\n\t]}, '').rstrip end STR_WITH_PRE = [ -- 2.33.0