From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:35:09 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_b... X-Git-Tag: 4.2.0~1473 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60878a2ad311a9948d80a4650f69b229d13f05eb;p=redmine.git cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_blockquote git-svn-id: http://svn.redmine.org/redmine/trunk@19167 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 e6dcb5f18..35b850721 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -197,41 +197,39 @@ EXPECTED def test_blockquote # orig raw text - raw = <<-RAW -John said: -> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. -> Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. -> * Donec odio lorem, -> * sagittis ac, -> * malesuada in, -> * adipiscing eu, dolor. -> -> >Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus. -> Proin a tellus. Nam vel neque. - -He's right. -RAW - + raw = <<~RAW + John said: + > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. + > Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. + > * Donec odio lorem, + > * sagittis ac, + > * malesuada in, + > * adipiscing eu, dolor. + > + > >Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus. + > Proin a tellus. Nam vel neque. + + He's right. + RAW # expected html - expected = <<-EXPECTED -

John said:

-
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
-Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. - -
-

Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.

-
-

Proin a tellus. Nam vel neque.

-
-

He's right.

-EXPECTED - + expected = <<~EXPECTED +

John said:

+
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero.
+ Nullam commodo metus accumsan nulla. Curabitur lobortis dui id dolor. + +
+

Nulla varius pulvinar diam. Proin id arcu id lorem scelerisque condimentum. Proin vehicula turpis vitae lacus.

+
+

Proin a tellus. Nam vel neque.

+
+

He's right.

+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end