]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 12:40:52 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 12:40:52 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19246 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb

index bed923c5d44757c05a04cf10dd84ac9317a5eb43..33ba853c3953154f8ae0e30560661869a4aeed78 100644 (file)
@@ -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'
 
index f52f1a169c93e148925b3fb59fc947aa1fc84a0a..62b47902be19dedecf863862c0cb76b4226bb22f 100644 (file)
@@ -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