Fixed that #parse_redmine_links errors when given a link tag without attributes (#19304).

git-svn-id: http://svn.redmine.org/redmine/trunk@14774 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-10-31 09:36:13 +00:00
parent e6112a9710
commit 58d3dc354d
2 changed files with 8 additions and 1 deletions

View File

@@ -1263,6 +1263,13 @@ RAW
end
end
def test_parse_redmine_links_should_handle_a_tag_without_attributes
text = '<a>http://example.com</a>'
expected = text.dup
parse_redmine_links(text, nil, nil, nil, true, {})
assert_equal expected, text
end
def test_due_date_distance_in_words
to_test = { Date.today => 'Due in 0 days',
Date.today + 1 => 'Due in 1 day',