From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:33:39 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_f... X-Git-Tag: 4.2.0~1481 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb4a59b76f3f64f051098a6ad277183adeab2bb9;p=redmine.git cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_footnotes git-svn-id: http://svn.redmine.org/redmine/trunk@19159 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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