diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-06 16:28:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-06 16:28:48 +0000 |
commit | da69f086e7e0f1cfafc808d0d1174160dc1aa4a9 (patch) | |
tree | ffddb6fd5f000fb89e0286de32530c4a5292155c /test/unit/helpers | |
parent | 42f9dc7d2c5ac27b538ad5f33fcb132437ed5975 (diff) | |
download | redmine-da69f086e7e0f1cfafc808d0d1174160dc1aa4a9.tar.gz redmine-da69f086e7e0f1cfafc808d0d1174160dc1aa4a9.zip |
Fixes version url.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6185 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 2 | ||||
-rw-r--r-- | test/unit/helpers/projects_helper_test.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 9b42c3a65..1d82dcb0e 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -239,7 +239,7 @@ RAW 'invalid:document:"Test document"' => 'invalid:document:"Test document"', # versions 'version:"1.0"' => 'version:"1.0"', - 'ecookbook:version:"1.0"' => '<a href="/versions/show/2" class="version">1.0</a>', + 'ecookbook:version:"1.0"' => '<a href="/versions/2" class="version">1.0</a>', 'invalid:version:"1.0"' => 'invalid:version:"1.0"', # changeset 'r2' => 'r2', diff --git a/test/unit/helpers/projects_helper_test.rb b/test/unit/helpers/projects_helper_test.rb index e1685280c..6ad800603 100644 --- a/test/unit/helpers/projects_helper_test.rb +++ b/test/unit/helpers/projects_helper_test.rb @@ -1,5 +1,5 @@ # Redmine - project management software -# Copyright (C) 2006-2009 Jean-Philippe Lang +# Copyright (C) 2006-2011 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -32,12 +32,12 @@ class ProjectsHelperTest < ActionView::TestCase def test_link_to_version_within_project @project = Project.find(2) User.current = User.find(1) - assert_equal '<a href="/versions/show/5">Alpha</a>', link_to_version(Version.find(5)) + assert_equal '<a href="/versions/5">Alpha</a>', link_to_version(Version.find(5)) end def test_link_to_version User.current = User.find(1) - assert_equal '<a href="/versions/show/5">OnlineStore - Alpha</a>', link_to_version(Version.find(5)) + assert_equal '<a href="/versions/5">OnlineStore - Alpha</a>', link_to_version(Version.find(5)) end def test_link_to_private_version |