From 11383795ab3bd86855c88a4fc4822e3c76699464 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 22 Nov 2019 14:35:20 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/ClosingHeredocIndentation in TextileFormatterTest#test_nested_lists git-svn-id: http://svn.redmine.org/redmine/trunk@19168 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../wiki_formatting/textile_formatter_test.rb | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 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 35b850721..1065f48fd 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -133,32 +133,30 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase end def test_nested_lists - raw = <<-RAW -# Item 1 -# Item 2 -** Item 2a -** Item 2b -# Item 3 -** Item 3a -RAW - - expected = <<-EXPECTED -
    -
  1. Item 1
  2. -
  3. Item 2 -
      -
    • Item 2a
    • -
    • Item 2b
    • -
    -
  4. -
  5. Item 3 -
      -
    • Item 3a
    • -
    -
  6. -
-EXPECTED - + raw = <<~RAW + # Item 1 + # Item 2 + ** Item 2a + ** Item 2b + # Item 3 + ** Item 3a + RAW + expected = <<~EXPECTED +
    +
  1. Item 1
  2. +
  3. Item 2 +
      +
    • Item 2a
    • +
    • Item 2b
    • +
    +
  4. +
  5. Item 3 +
      +
    • Item 3a
    • +
    +
  6. +
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end -- 2.39.5