diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-04-26 07:34:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-04-26 07:34:11 +0000 |
commit | a4fa0364d45926e2127dda7c42c6b141bb8c1402 (patch) | |
tree | 8ad752db440dc769d0efeb3915912de8e4dbd559 /test/unit | |
parent | d197203d79830f729d6dee41ff8fbc8625371dee (diff) | |
download | redmine-a4fa0364d45926e2127dda7c42c6b141bb8c1402.tar.gz redmine-a4fa0364d45926e2127dda7c42c6b141bb8c1402.zip |
Redmine links not working with html escpaed characters (#16668).
git-svn-id: http://svn.redmine.org/redmine/trunk@13106 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 1b58e88d5..58b19f02d 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -436,6 +436,14 @@ RAW end end + def test_redmine_links_by_name_should_work_with_html_escaped_characters + v = Version.generate!(:name => "Test & Show.txt", :project_id => 1) + link = link_to("Test & Show.txt", "/versions/#{v.id}", :class => "version") + + @project = v.project + assert_equal "<p>#{link}</p>", textilizable('version:"Test & Show.txt"') + end + def test_link_to_issue_subject issue = Issue.generate!(:subject => "01234567890123456789") str = link_to_issue(issue, :truncate => 10) |