summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-28 09:00:45 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-28 09:00:45 +0000
commit16c2c4a8808981bf4b34864a1ed56f61723466cf (patch)
tree097f10022907ed02154d792ba06a727db0ae12dc /test/unit/lib
parent6a039db0860fbb1f715786e4ec306c434a4b6aab (diff)
downloadredmine-16c2c4a8808981bf4b34864a1ed56f61723466cf.tar.gz
redmine-16c2c4a8808981bf4b34864a1ed56f61723466cf.zip
Fix RuboCop offense Layout/LineLength due to r21849 (#37713).
git-svn-id: https://svn.redmine.org/redmine/trunk@21865 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb
index f46f69c2e..d00065b8b 100644
--- a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb
@@ -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