diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-19 11:16:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-19 11:16:23 +0000 |
commit | 9ac86d4f4e73d1c5ee48a39f9ebd6b3fbc38c558 (patch) | |
tree | 57e8871e962cba102c23c1eccab427d884b20e60 /test/unit/helpers | |
parent | 1bf492c30ee803e1fbe1eb486c3aac7f6d224221 (diff) | |
download | redmine-9ac86d4f4e73d1c5ee48a39f9ebd6b3fbc38c558.tar.gz redmine-9ac86d4f4e73d1c5ee48a39f9ebd6b3fbc38c558.zip |
Wiki links for news and forums (#9600).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7840 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 5806b7224..a154729f3 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -23,7 +23,7 @@ class ApplicationHelperTest < ActionView::TestCase :repositories, :changesets, :trackers, :issue_statuses, :issues, :versions, :documents, :wikis, :wiki_pages, :wiki_contents, - :boards, :messages, + :boards, :messages, :news, :attachments, :enumerations @@ -163,7 +163,11 @@ RAW version_link = link_to('1.0', {:controller => 'versions', :action => 'show', :id => 2}, :class => 'version') + board_url = {:controller => 'boards', :action => 'show', :id => 2, :project_id => 'ecookbook'} + message_url = {:controller => 'messages', :action => 'show', :board_id => 1, :id => 4} + + news_url = {:controller => 'news', :action => 'show', :id => 1} project_url = {:controller => 'projects', :action => 'show', :id => 'subproject1'} @@ -198,9 +202,15 @@ RAW 'source:/some/file.ext#L110' => link_to('source:/some/file.ext#L110', source_url_with_ext.merge(:anchor => 'L110'), :class => 'source'), 'source:/some/file@52#L110' => link_to('source:/some/file@52#L110', source_url.merge(:rev => 52, :anchor => 'L110'), :class => 'source'), 'export:/some/file' => link_to('export:/some/file', source_url.merge(:format => 'raw'), :class => 'source download'), + # forum + 'forum#2' => link_to('Discussion', board_url, :class => 'board'), + 'forum:Discussion' => link_to('Discussion', board_url, :class => 'board'), # message 'message#4' => link_to('Post 2', message_url, :class => 'message'), 'message#5' => link_to('RE: post 2', message_url.merge(:anchor => 'message-5', :r => 5), :class => 'message'), + # news + 'news#1' => link_to('eCookbook first release !', news_url, :class => 'news'), + 'news:"eCookbook first release !"' => link_to('eCookbook first release !', news_url, :class => 'news'), # project 'project#3' => link_to('eCookbook Subproject 1', project_url, :class => 'project'), 'project:subproject1' => link_to('eCookbook Subproject 1', project_url, :class => 'project'), |