From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:34:00 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_g... X-Git-Tag: 4.2.0~1479 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=906e5fa373de4227ca09f84b506b1ee6fde7d8c8;p=redmine.git cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_get_section_should_support_lines_with_spaces_before_heading git-svn-id: http://svn.redmine.org/redmine/trunk@19161 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 6cfd696bd..fb9e5a967 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -516,24 +516,23 @@ EXPECTED def test_get_section_should_support_lines_with_spaces_before_heading # the lines after Content 2 and Heading 4 contain a space - text = <<-STR -h1. Heading 1 - -Content 1 + text = <<~STR + h1. Heading 1 -h1. Heading 2 + Content 1 -Content 2 + h1. Heading 2 -h1. Heading 3 + Content 2 -Content 3 + h1. Heading 3 -h1. Heading 4 + Content 3 -Content 4 -STR + h1. Heading 4 + Content 4 + STR [1, 2, 3, 4].each do |index| assert_match /\Ah1. Heading #{index}.+Content #{index}/m, @formatter.new(text).get_section(index).first end