mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Add link from group name to group page on project overview page (#12795).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21073 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1708,6 +1708,17 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_link_to_principal_should_link_to_user
|
||||
user = User.find(2)
|
||||
assert_equal link_to_user(user), link_to_principal(user)
|
||||
end
|
||||
|
||||
def test_link_to_principal_should_link_to_group
|
||||
group = Group.find(10)
|
||||
result = link_to('A Team', '/groups/10', :class => 'group icon icon-group')
|
||||
assert_equal result, link_to_principal(group)
|
||||
end
|
||||
|
||||
def test_link_to_group_should_return_only_group_name_for_non_admin_users
|
||||
User.current = nil
|
||||
group = Group.find(10)
|
||||
|
||||
Reference in New Issue
Block a user