diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:34:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-22 14:34:00 +0000 |
commit | 906e5fa373de4227ca09f84b506b1ee6fde7d8c8 (patch) | |
tree | 8d8be8d993a9f0d89b98f8d4f8108503ec95664b /test | |
parent | e44d928fdf436d276cc0b45a2894f2f575b90fe6 (diff) | |
download | redmine-906e5fa373de4227ca09f84b506b1ee6fde7d8c8.tar.gz redmine-906e5fa373de4227ca09f84b506b1ee6fde7d8c8.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 21 |
1 files changed, 10 insertions, 11 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 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 |