]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Layout/LineLength due to r21849 (#37713).
authorGo MAEDA <maeda@farend.jp>
Wed, 28 Sep 2022 09:00:45 +0000 (09:00 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 28 Sep 2022 09:00:45 +0000 (09:00 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@21865 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb

index f46f69c2ed5e17562d1e48ce5c0be8a10cc2281c..d00065b8be9509fb2fb4dfca177316cb956e6fea 100644 (file)
@@ -52,8 +52,14 @@ if Object.const_defined?(:CommonMarker)
     end
 
     def test_external_links_with_target_get_rel_noopener
-      assert_equal %(<a target="_blank" href="http://example.net/" class="external" rel="noopener">link</a>), filter(%(<a target="_blank" href="http://example.net/">link</a>))
-      assert_equal %(<a target="_blank" href="http://example.net/" rel="nofollow noopener" class="external">link</a>), filter(%(<a target="_blank" href="http://example.net/" rel="nofollow">link</a>))
+      assert_equal(
+        %(<a target="_blank" href="http://example.net/" class="external" rel="noopener">link</a>),
+        filter(%(<a target="_blank" href="http://example.net/">link</a>))
+      )
+      assert_equal(
+        %(<a target="_blank" href="http://example.net/" rel="nofollow noopener" class="external">link</a>),
+        filter(%(<a target="_blank" href="http://example.net/" rel="nofollow">link</a>))
+      )
     end
   end
 end