From fb4a59b76f3f64f051098a6ad277183adeab2bb9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:33:39 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_footnotes git-svn-id: http://svn.redmine.org/redmine/trunk@19159 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../wiki_formatting/textile_formatter_test.rb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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 -- 2.39.5