]> source.dussan.org Git - redmine.git/commitdiff
Fixes version url.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 6 Jul 2011 16:28:48 +0000 (16:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 6 Jul 2011 16:28:48 +0000 (16:28 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6185 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/application_helper_test.rb
test/unit/helpers/projects_helper_test.rb
test/unit/lib/redmine/helpers/gantt_test.rb

index 9b42c3a65a77e77dbc600ae67756cbe080799865..1d82dcb0e31ab48ae6a4fc7eff394ceecef413b2 100644 (file)
@@ -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',
index e1685280c58f48701e1d35ea7d4705a7d5f12b84..6ad800603bf515032146b4377165a8afaf396877 100644 (file)
@@ -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
index a32b41d27a55fcb7cb549b629d5d83f143ab1702..fa8f9329ae8f66dcb5b25ca0e9e25f6b8f3b162d 100644 (file)
@@ -476,7 +476,7 @@ class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
 
       should "include a link to the version" do
         @response.body = @gantt.subject_for_version(@version, {:format => :html})
-        assert_select 'a[href=?]', Regexp.escape("/versions/show/#{@version.to_param}"), :text => /#{@version.name}/
+        assert_select 'a[href=?]', Regexp.escape("/versions/#{@version.to_param}"), :text => /#{@version.name}/
       end
 
       should "style late versions" do