]> 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>
Sat, 23 Nov 2019 09:03:55 +0000 (09:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 09:03:55 +0000 (09:03 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19187 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 13c071e7f1589a5fe2da4672080d099822b02ccf..c5e6ad75043f1bb46810cd3ca0e75e373da6cbea 100644 (file)
@@ -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'
index 3b243e747d571b2fcbf40e36e85ffbc17de35cbb..72f3eac09e8de46445fc4077fb30f723bcebac56 100644 (file)
@@ -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('<p>A html snippet with<br>a new line.</p>')
+    )
   end
 
   def test_should_remove_style_tags_from_body
-    assert_equal "Text",
+    assert_equal(
+      "Text",
       @parser.to_text('<html><body><style>body {font-size: 0.8em;}</style>Text</body></html>')
+    )
   end
 
   def test_should_remove_preceding_whitespaces
@@ -59,8 +63,9 @@ class Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase
         </tr>
       </table>
     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