diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-28 17:20:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-28 17:20:31 +0000 |
commit | 198a8c602dc164186972d0b53064c8086c8ef2ec (patch) | |
tree | 07c92d03e9cfb0e34962e184abc7a9a2c5dcad1b /test | |
parent | 2dbc3d294364b59fb0360e15185894ca657e4ddd (diff) | |
download | redmine-198a8c602dc164186972d0b53064c8086c8ef2ec.tar.gz redmine-198a8c602dc164186972d0b53064c8086c8ef2ec.zip |
Adds support for wiki links with anchor (#1647).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1706 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 71ef572b0..979321bd3 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -133,6 +133,9 @@ class ApplicationHelperTest < HelperTestCase to_test = { '[[CookBook documentation]]' => '<a href="/wiki/ecookbook/CookBook_documentation" class="wiki-page">CookBook documentation</a>', '[[Another page|Page]]' => '<a href="/wiki/ecookbook/Another_page" class="wiki-page">Page</a>', + # link with anchor + '[[CookBook documentation#One-section]]' => '<a href="/wiki/ecookbook/CookBook_documentation#One-section" class="wiki-page">CookBook documentation</a>', + '[[Another page#anchor|Page]]' => '<a href="/wiki/ecookbook/Another_page#anchor" class="wiki-page">Page</a>', # page that doesn't exist '[[Unknown page]]' => '<a href="/wiki/ecookbook/Unknown_page" class="wiki-page new">Unknown page</a>', '[[Unknown page|404]]' => '<a href="/wiki/ecookbook/Unknown_page" class="wiki-page new">404</a>', |