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

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

index 0a7dea724bcc5e788ba48b766bfde5697ce50444..386de908b5ab16a34451973acdf10ce6b5f64681 100644 (file)
@@ -318,7 +318,6 @@ Layout/SpaceInsideParens:
     - 'test/unit/changeset_test.rb'
     - 'test/unit/issue_subtasking_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
-    - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
     - 'test/unit/query_test.rb'
     - 'test/unit/repository_test.rb'
 
index 1065f48fd57aaf0bebe374539b626bc2bcfe2ead..2f7a36be73f859ecfcba26c6e7f81b0cdb772642 100644 (file)
@@ -621,7 +621,11 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
 
   def assert_html_output(to_test, expect_paragraph = true)
     to_test.each do |text, expected|
-      assert_equal(( expect_paragraph ? "<p>#{expected}</p>" : expected ), @formatter.new(text).to_html, "Formatting the following text failed:\n===\n#{text}\n===\n")
+      assert_equal(
+        (expect_paragraph ? "<p>#{expected}</p>" : expected),
+        @formatter.new(text).to_html,
+        "Formatting the following text failed:\n===\n#{text}\n===\n"
+      )
     end
   end