diff options
author | Go MAEDA <maeda@farend.jp> | 2022-09-28 09:02:46 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-09-28 09:02:46 +0000 |
commit | 59852ed8453a1a63574de0345b78108a1a90a62d (patch) | |
tree | 931e4bd047737e7151366b7aa482a0c56c75fb8c /test/unit/lib | |
parent | 0baa15fd15cdc1dcdf38a624a6cccbddba9b62c8 (diff) | |
download | redmine-59852ed8453a1a63574de0345b78108a1a90a62d.tar.gz redmine-59852ed8453a1a63574de0345b78108a1a90a62d.zip |
Merged r21865 from trunk to 5.0-stable (#37713).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21866 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.rb | 10 |
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 |