##// END OF EJS Templates
Fixes version url....
Jean-Philippe Lang -
r6065:da69f086e7e0
parent child
Show More
@@ -239,7 +239,7 RAW
239 'invalid:document:"Test document"' => 'invalid:document:"Test document"',
239 'invalid:document:"Test document"' => 'invalid:document:"Test document"',
240 # versions
240 # versions
241 'version:"1.0"' => 'version:"1.0"',
241 'version:"1.0"' => 'version:"1.0"',
242 'ecookbook:version:"1.0"' => '<a href="/versions/show/2" class="version">1.0</a>',
242 'ecookbook:version:"1.0"' => '<a href="/versions/2" class="version">1.0</a>',
243 'invalid:version:"1.0"' => 'invalid:version:"1.0"',
243 'invalid:version:"1.0"' => 'invalid:version:"1.0"',
244 # changeset
244 # changeset
245 'r2' => 'r2',
245 'r2' => 'r2',
@@ -1,5 +1,5
1 # Redmine - project management software
1 # Redmine - project management software
2 # Copyright (C) 2006-2009 Jean-Philippe Lang
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
@@ -32,12 +32,12 class ProjectsHelperTest < ActionView::TestCase
32 def test_link_to_version_within_project
32 def test_link_to_version_within_project
33 @project = Project.find(2)
33 @project = Project.find(2)
34 User.current = User.find(1)
34 User.current = User.find(1)
35 assert_equal '<a href="/versions/show/5">Alpha</a>', link_to_version(Version.find(5))
35 assert_equal '<a href="/versions/5">Alpha</a>', link_to_version(Version.find(5))
36 end
36 end
37
37
38 def test_link_to_version
38 def test_link_to_version
39 User.current = User.find(1)
39 User.current = User.find(1)
40 assert_equal '<a href="/versions/show/5">OnlineStore - Alpha</a>', link_to_version(Version.find(5))
40 assert_equal '<a href="/versions/5">OnlineStore - Alpha</a>', link_to_version(Version.find(5))
41 end
41 end
42
42
43 def test_link_to_private_version
43 def test_link_to_private_version
@@ -476,7 +476,7 class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
476
476
477 should "include a link to the version" do
477 should "include a link to the version" do
478 @response.body = @gantt.subject_for_version(@version, {:format => :html})
478 @response.body = @gantt.subject_for_version(@version, {:format => :html})
479 assert_select 'a[href=?]', Regexp.escape("/versions/show/#{@version.to_param}"), :text => /#{@version.name}/
479 assert_select 'a[href=?]', Regexp.escape("/versions/#{@version.to_param}"), :text => /#{@version.name}/
480 end
480 end
481
481
482 should "style late versions" do
482 should "style late versions" do
General Comments 0
You need to be logged in to leave comments. Login now