From eac3b2b27def63a68ea0de78f9bedba95da6121c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 14 Nov 2014 21:31:27 +0000 Subject: Fixed that Redmine links should not be parsed inside links (#18301). git-svn-id: http://svn.redmine.org/redmine/trunk@13596 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/unit/helpers') diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 6ce52ed72..369057890 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -363,6 +363,12 @@ RAW to_test.each { |text, result| assert_equal "

#{result}

", textilizable(text), "#{text} failed" } end + def test_should_not_parse_redmine_links_inside_link + raw = "r1 should not be parsed in http://example.com/url-r1/" + assert_match %r{

r1 should not be parsed in http://example.com/url-r1/

}, + textilizable(raw, :project => Project.find(1)) + end + 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') -- cgit v1.2.3