1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-28 11:21:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-22 14:34:00 +00:00
parent e44d928fdf
commit 906e5fa373

View File

@ -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
text = <<~STR
h1. Heading 1
Content 1
Content 1
h1. Heading 2
h1. Heading 2
Content 2
Content 2
h1. Heading 3
h1. Heading 3
Content 3
Content 3
h1. Heading 4
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