summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-20 21:39:17 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-20 21:39:17 +0000
commita6e09913b725b0b1276c2d2a564a7e3070c2c23b (patch)
tree03964e275df2aaeb94c9dc7ca657feeb90d5a3b5 /test/functional/issues_controller_test.rb
parent605dadd37465398e0317ca855741e6582cdd0170 (diff)
downloadredmine-a6e09913b725b0b1276c2d2a564a7e3070c2c23b.tar.gz
redmine-a6e09913b725b0b1276c2d2a564a7e3070c2c23b.zip
Link from assignee to group page (#12795).
git-svn-id: http://svn.redmine.org/redmine/trunk@21075 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 87a6ec704..b8e185a28 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -2605,7 +2605,7 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'table.attributes .category', 0
end
- def test_show_should_display_link_to_the_assignee
+ def test_show_should_display_link_to_the_assigned_user
get(:show, :params => {:id => 2})
assert_response :success
assert_select '.assigned-to' do
@@ -2613,6 +2613,15 @@ class IssuesControllerTest < Redmine::ControllerTest
end
end
+ def test_show_should_display_link_to_the_assigned_group
+ Issue.find(2).update_attribute(:assigned_to_id, 10)
+ get(:show, :params => {:id => 2})
+ assert_response :success
+ assert_select '.assigned-to' do
+ assert_select 'a[href="/groups/10"]'
+ end
+ end
+
def test_show_should_display_visible_changesets_from_other_projects
project = Project.find(2)
issue = project.issues.first