##// END OF EJS Templates
Fixes version url....
Jean-Philippe Lang -
r6065:da69f086e7e0
parent child
Show More
@@ -239,7 +239,7 RAW
239 239 'invalid:document:"Test document"' => 'invalid:document:"Test document"',
240 240 # versions
241 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 243 'invalid:version:"1.0"' => 'invalid:version:"1.0"',
244 244 # changeset
245 245 'r2' => 'r2',
@@ -1,5 +1,5
1 1 # Redmine - project management software
2 # Copyright (C) 2006-2009 Jean-Philippe Lang
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
@@ -32,12 +32,12 class ProjectsHelperTest < ActionView::TestCase
32 32 def test_link_to_version_within_project
33 33 @project = Project.find(2)
34 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 36 end
37 37
38 38 def test_link_to_version
39 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 41 end
42 42
43 43 def test_link_to_private_version
@@ -476,7 +476,7 class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
476 476
477 477 should "include a link to the version" do
478 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 480 end
481 481
482 482 should "style late versions" do
General Comments 0
You need to be logged in to leave comments. Login now