From: Toshi MARUYAMA Date: Sat, 23 Nov 2019 09:03:55 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting... X-Git-Tag: 4.2.0~1453 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c37ad515f845c61710adb7c90090665bc88f0c50;p=redmine.git cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/wiki_formatting/html_parser_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19187 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 13c071e7f..c5e6ad750 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -21,7 +21,6 @@ Layout/AlignArguments: - 'test/integration/api_test/wiki_pages_test.rb' - 'test/test_helper.rb' - 'test/unit/changeset_test.rb' - - 'test/unit/lib/redmine/wiki_formatting/html_parser_test.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/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb index 3b243e747..72f3eac09 100644 --- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb @@ -25,13 +25,17 @@ class Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase end def test_convert_line_breaks - assert_equal "A html snippet with\na new line.", + assert_equal( + "A html snippet with\na new line.", @parser.to_text('

A html snippet with
a new line.

') + ) end def test_should_remove_style_tags_from_body - assert_equal "Text", + assert_equal( + "Text", @parser.to_text('Text') + ) end def test_should_remove_preceding_whitespaces @@ -59,8 +63,9 @@ class Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase HTML - - assert_equal "th1\n\nth2\n\ntd1\n\ntd2", + assert_equal( + "th1\n\nth2\n\ntd1\n\ntd2", @parser.to_text(str) + ) end end