Commit 556dd1d7 authored by jplang's avatar jplang

Fixed that Redmine links should not be parsed inside links (#18301).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c9982e5d
This diff is collapsed.
......@@ -363,6 +363,12 @@ RAW
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text), "#{text} failed" }
def test_should_not_parse_redmine_links_inside_link
raw = "r1 should not be parsed in"
assert_match %r{<p><a class="changeset".*>r1</a> should not be parsed in <a class="external" href=""></a></p>},
textilizable(raw, :project => Project.find(1))
def test_redmine_links_with_a_different_project_before_current_project
vp1 = Version.generate!(:project_id => 1, :name => '1.4.4')
vp3 = Version.generate!(:project_id => 3, :name => '1.4.4')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment