mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
Adds version date as title in #link_to_version (#17431).
git-svn-id: http://svn.redmine.org/redmine/trunk@13324 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -816,7 +816,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
def test_index_with_fixed_version_column
|
||||
get :index, :set_filter => 1, :c => %w(fixed_version)
|
||||
assert_select 'table.issues td.fixed_version' do
|
||||
assert_select 'a[href=?]', '/versions/2', :text => '1.0'
|
||||
assert_select 'a[href=?]', '/versions/2', :text => 'eCookbook - 1.0'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -42,12 +42,19 @@ 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/5">Alpha</a>', link_to_version(Version.find(5))
|
||||
assert_equal '<a href="/versions/5" title="07/01/2006">Alpha</a>', link_to_version(Version.find(5))
|
||||
end
|
||||
|
||||
def test_link_to_version
|
||||
User.current = User.find(1)
|
||||
assert_equal '<a href="/versions/5">OnlineStore - Alpha</a>', link_to_version(Version.find(5))
|
||||
assert_equal '<a href="/versions/5" title="07/01/2006">OnlineStore - Alpha</a>', link_to_version(Version.find(5))
|
||||
end
|
||||
|
||||
def test_link_to_version_without_effective_date
|
||||
User.current = User.find(1)
|
||||
version = Version.find(5)
|
||||
version.effective_date = nil
|
||||
assert_equal '<a href="/versions/5">OnlineStore - Alpha</a>', link_to_version(version)
|
||||
end
|
||||
|
||||
def test_link_to_private_version
|
||||
|
||||
Reference in New Issue
Block a user