diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-15 17:49:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-15 17:49:31 +0000 |
commit | 5c3ac1a40e123688048268d22d553080ee001254 (patch) | |
tree | 63ae0e9651426703873b218cb06925d4f437133b /test | |
parent | 6aae25209a07a49a2414193ba1500d135c1b497e (diff) | |
download | redmine-5c3ac1a40e123688048268d22d553080ee001254.tar.gz redmine-5c3ac1a40e123688048268d22d553080ee001254.zip |
Adds support for "Magic links" to notes (#2715).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8877 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 7024f6fa0..12776d58c 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -227,6 +227,8 @@ RAW def test_redmine_links issue_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3}, :class => 'issue status-1 priority-1 overdue', :title => 'Error 281 when updating a recipe (New)') + note_link = link_to('#3', {:controller => 'issues', :action => 'show', :id => 3, :anchor => 'note-14'}, + :class => 'issue status-1 priority-1 overdue', :title => 'Error 281 when updating a recipe (New)') changeset_link = link_to('r1', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 1}, :class => 'changeset', :title => 'My very first commit') @@ -253,6 +255,9 @@ RAW to_test = { # tickets '#3, [#3], (#3) and #3.' => "#{issue_link}, [#{issue_link}], (#{issue_link}) and #{issue_link}.", + # ticket notes + '#3-14' => note_link, + '#3#note-14' => note_link, # changesets 'r1' => changeset_link, 'r1.' => "#{changeset_link}.", @@ -294,6 +299,8 @@ RAW 'project:"eCookbook subProject 1"' => link_to('eCookbook Subproject 1', project_url, :class => 'project'), # escaping '!#3.' => '#3.', + '!#3-14.' => '#3-14.', + '!#3#-note14.' => '#3#-note14.', '!r1' => 'r1', '!document#1' => 'document#1', '!document:"Test document"' => 'document:"Test document"', |