1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Add a test for #36958.

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21559 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2022-05-03 16:50:52 +00:00
parent a9e2d1aeb5
commit 95336e48ad

View File

@ -44,5 +44,11 @@ if Object.const_defined?(:CommonMarker)
def test_mailto_links_should_have_email_class
assert_equal %(<a href="mailto:user@example.org" class="email">user</a>), filter(%(<a href="mailto:user@example.org">user</a>))
end
def test_malformed_uri_should_not_cause_exception
assert_nothing_raised do
filter(%(<a href="http://example.com/foo#bar#">Malformed URI</a>))
end
end
end
end