diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:41:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:41:21 +0000 |
commit | b7b42e9d7673386180a3a350331579ee830b7d83 (patch) | |
tree | 7be640874d9f2ea3004dfb27cea976c1218a7be2 /test/unit | |
parent | 65328a5d53139a44ad4d8c18ecfe1f3d29174abb (diff) | |
download | redmine-b7b42e9d7673386180a3a350331579ee830b7d83.tar.gz redmine-b7b42e9d7673386180a3a350331579ee830b7d83.zip |
code cleanup: rubocop: fix Layout/CommentIndentation and Layout/MultilineArrayBraceLayout in test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18810 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb index 465bb4711..23d785901 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb @@ -125,33 +125,40 @@ EXPECTED end STR_WITH_PRE = [ - # 0 -"# Title + # 0 + <<~STR.chomp, + # Title -Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.", - # 1 -"## Heading 2 + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + STR + # 1 + <<~STR.chomp, + ## Heading 2 -~~~ruby - def foo - end -~~~ + ~~~ruby + def foo + end + ~~~ -Morbi facilisis accumsan orci non pharetra. + Morbi facilisis accumsan orci non pharetra. -``` -Pre Content: + ``` + Pre Content: -## Inside pre + ## Inside pre -<tag> inside pre block + <tag> inside pre block -Morbi facilisis accumsan orci non pharetra. -```", - # 2 -"### Heading 3 + Morbi facilisis accumsan orci non pharetra. + ``` + STR + # 2 + <<~STR.chomp, + ### Heading 3 -Nulla nunc nisi, egestas in ornare vel, posuere ac libero."] + Nulla nunc nisi, egestas in ornare vel, posuere ac libero. + STR + ] def test_get_section_should_ignore_pre_content text = STR_WITH_PRE.join("\n\n") |