mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix RuboCop offense Layout/LineLength due to r21849 (#37713).
git-svn-id: https://svn.redmine.org/redmine/trunk@21865 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6a039db086
commit
16c2c4a880
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user