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
This commit is contained in:
Toshi MARUYAMA
2019-11-24 05:26:22 +00:00
parent 9b362ca043
commit b4bfc18bb4
2 changed files with 5 additions and 2 deletions

View 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'

View 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