summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2013-03-21 21:53:28 +0000
committerEtienne Massip <etienne.massip@gmail.com>2013-03-21 21:53:28 +0000
commitd7cb14773b7eefaa21fc8eb20e0d97e2ee84c522 (patch)
treee79068e04f568b3f3c75fb23fc03bd8d0ba45204 /test/unit
parentb26f1c55cc7d80d30d130c9514eb879431111989 (diff)
downloadredmine-d7cb14773b7eefaa21fc8eb20e0d97e2ee84c522.tar.gz
redmine-d7cb14773b7eefaa21fc8eb20e0d97e2ee84c522.zip
Fixed commit link title escaping (fixes #13405).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11671 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/helpers/application_helper_test.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 17219cf2a..5635c290b 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -264,9 +264,12 @@ RAW
note_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'},
:class => Issue.find(3).css_classes, :title => 'Error 281 when updating a recipe (New)')
- changeset_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
+ revision_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1},
:class => 'changeset', :title => 'My very first commit')
- changeset_link2 = link_to('r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
+ revision_link2 = link_to('r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
+ :class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')
+
+ changeset_link2 = link_to('691322a8eb01e11fd7', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
:class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')
document_link = link_to('Test document', {:controller => 'documents', :action => 'show', :id => 1},
@@ -304,10 +307,11 @@ RAW
# should not ignore leading zero
'#03' => '#03',
# changesets
- 'r1' => changeset_link,
- 'r1.' => "#{changeset_link}.",
- 'r1, r2' => "#{changeset_link}, #{changeset_link2}",
- 'r1,r2' => "#{changeset_link},#{changeset_link2}",
+ 'r1' => revision_link,
+ 'r1.' => "#{revision_link}.",
+ 'r1, r2' => "#{revision_link}, #{revision_link2}",
+ 'r1,r2' => "#{revision_link},#{revision_link2}",
+ 'commit:691322a8eb01e11fd7' => changeset_link2,
# documents
'document#1' => document_link,
'document:"Test document"' => document_link,