diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 04:15:26 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 04:15:26 +0000 |
commit | 1f143868225521a3097435cdd8bc9e0d76fc1196 (patch) | |
tree | 6e2c3adb5e89bf77076b0e106e039d36a9a9e1c2 /test | |
parent | 69fb5a6a8031fa284a515ba427d847a53f77b9e3 (diff) | |
download | redmine-1f143868225521a3097435cdd8bc9e0d76fc1196.tar.gz redmine-1f143868225521a3097435cdd8bc9e0d76fc1196.zip |
code cleanup: rubocop: fix Layout/CommentIndentation and Layout/MultilineArrayBraceLayout of STR_WITHOUT_PRE in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18698 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 65 |
1 files changed, 37 insertions, 28 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 671a5b384..c7cea731e 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -384,35 +384,44 @@ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end - STR_WITHOUT_PRE = [ - # 0 -"h1. Title - -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.", - # 1 -"h2. Heading 2 - -Maecenas sed elit sit amet mi accumsan vestibulum non nec velit. Proin porta tincidunt lorem, consequat rhoncus dolor fermentum in. - -Cras ipsum felis, ultrices at porttitor vel, faucibus eu nunc.", - # 2 -"h2. Heading 2 - -Morbi facilisis accumsan orci non pharetra. - -h3. Heading 3 - -Nulla nunc nisi, egestas in ornare vel, posuere ac libero.", - # 3 -"h3. Heading 3 - -Praesent eget turpis nibh, a lacinia nulla.", - # 4 -"h2. Heading 2 - -Ut rhoncus elementum adipiscing."] - + # 0 + <<~STR.chomp, + h1. Title + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + STR + # 1 + <<~STR.chomp, + h2. Heading 2 + + Maecenas sed elit sit amet mi accumsan vestibulum non nec velit. Proin porta tincidunt lorem, consequat rhoncus dolor fermentum in. + + Cras ipsum felis, ultrices at porttitor vel, faucibus eu nunc. + STR + # 2 + <<~STR.chomp, + h2. Heading 2 + + Morbi facilisis accumsan orci non pharetra. + + h3. Heading 3 + + Nulla nunc nisi, egestas in ornare vel, posuere ac libero. + STR + # 3 + <<~STR.chomp, + h3. Heading 3 + + Praesent eget turpis nibh, a lacinia nulla. + STR + # 4 + <<~STR.chomp, + h2. Heading 2 + + Ut rhoncus elementum adipiscing. + STR + ] TEXT_WITHOUT_PRE = STR_WITHOUT_PRE.join("\n\n").freeze def test_get_section_should_return_the_requested_section_and_its_hash |