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 - -
  4. -
  5. Item 3 - -
  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 + +
  4. +
  5. Item 3 + +
  6. +
+ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end