Fixes version url.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6185 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
42f9dc7d2c
commit
da69f086e7
|
@ -239,7 +239,7 @@ RAW
|
||||||
'invalid:document:"Test document"' => 'invalid:document:"Test document"',
|
'invalid:document:"Test document"' => 'invalid:document:"Test document"',
|
||||||
# versions
|
# versions
|
||||||
'version:"1.0"' => 'version:"1.0"',
|
'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"',
|
'invalid:version:"1.0"' => 'invalid:version:"1.0"',
|
||||||
# changeset
|
# changeset
|
||||||
'r2' => 'r2',
|
'r2' => 'r2',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Redmine - project management software
|
# 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
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# 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
|
def test_link_to_version_within_project
|
||||||
@project = Project.find(2)
|
@project = Project.find(2)
|
||||||
User.current = User.find(1)
|
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
|
end
|
||||||
|
|
||||||
def test_link_to_version
|
def test_link_to_version
|
||||||
User.current = User.find(1)
|
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
|
end
|
||||||
|
|
||||||
def test_link_to_private_version
|
def test_link_to_private_version
|
||||||
|
|
|
@ -476,7 +476,7 @@ class Redmine::Helpers::GanttTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
should "include a link to the version" do
|
should "include a link to the version" do
|
||||||
@response.body = @gantt.subject_for_version(@version, {:format => :html})
|
@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
|
end
|
||||||
|
|
||||||
should "style late versions" do
|
should "style late versions" do
|
||||||
|
|
Loading…
Reference in New Issue