diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index bed923c5d..33ba853c3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -20,7 +20,6 @@ Layout/AlignArguments: - 'test/integration/api_test/projects_test.rb' - 'test/integration/api_test/wiki_pages_test.rb' - 'test/test_helper.rb' - - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb' - 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb' - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb' 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 f52f1a169..62b47902b 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb @@ -173,9 +173,10 @@ class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase def test_update_section_should_not_escape_pre_content_outside_section text = STR_WITH_PRE.join("\n\n") replacement = "New text" - - assert_equal [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"), + assert_equal( + [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"), @formatter.new(text).update_section(3, replacement) + ) end def test_should_support_underlined_text