From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 05:26:22 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/lib/redmine/wiki_formatti... X-Git-Tag: 4.2.0~1412 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4bfc18bb49fa19de8faa281d53653f5c5a76cb6;p=redmine.git cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19228 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0a7dea724..386de908b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' 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 1065f48fd..2f7a36be7 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -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 ? "

#{expected}

" : expected ), @formatter.new(text).to_html, "Formatting the following text failed:\n===\n#{text}\n===\n") + assert_equal( + (expect_paragraph ? "

#{expected}

" : expected), + @formatter.new(text).to_html, + "Formatting the following text failed:\n===\n#{text}\n===\n" + ) end end