diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-02 13:19:16 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-02 13:19:16 +0000 |
commit | 1446c9b7f00109d31a48aa1ed8aea44a8db5e9f6 (patch) | |
tree | 34b74de587972689a866b24c9a88faa46a91d229 /test/unit/helpers | |
parent | 9be6dfbe106957818889449972321fb36ac377b6 (diff) | |
download | redmine-1446c9b7f00109d31a48aa1ed8aea44a8db5e9f6.tar.gz redmine-1446c9b7f00109d31a48aa1ed8aea44a8db5e9f6.zip |
scm: fix git and mercurial branch list box action
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9612 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-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 6dea2cf57..1a9d4642a 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -725,6 +725,13 @@ EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') end + def test_to_path_param + assert_equal 'test1/test2', to_path_param('test1/test2') + assert_equal 'test1/test2', to_path_param('/test1/test2/') + assert_equal 'test1/test2', to_path_param('//test1/test2/') + assert_equal nil, to_path_param('/') + end + def test_wiki_links_in_tables to_test = {"|[[Page|Link title]]|[[Other Page|Other title]]|\n|Cell 21|[[Last page]]|" => '<tr><td><a href="/projects/ecookbook/wiki/Page" class="wiki-page new">Link title</a></td>' + |