From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:33:27 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_s... X-Git-Tag: 4.2.0~1482 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bf2bbeb0c6c6687e06be5a3dc4a350ff23ab2ed;p=redmine.git cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre git-svn-id: http://svn.redmine.org/redmine/trunk@19158 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 8823f8d1e..669e622e0 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -622,18 +622,16 @@ EXPECTED end def test_should_not_handle_as_preformatted_text_tags_that_starts_with_pre - text = <<-STR - - This is some text - -STR - - expected = <<-EXPECTED -

<pree>
- This is some text
-</pree>

-EXPECTED - + text = <<~STR + + This is some text + + STR + expected = <<~EXPECTED +

<pree>
+ This is some text
+ </pree>

+ EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), to_html(text).gsub(%r{[\r\n\t]}, '') end