mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
Allow adding user groups as watchers for issues (#4511).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -834,7 +834,7 @@ class QueriesControllerTest < Redmine::ControllerTest
|
||||
assert_equal [["<< me >>", "me"]], json
|
||||
end
|
||||
|
||||
def test_watcher_filter_with_permission_should_show_members
|
||||
def test_watcher_filter_with_permission_should_show_members_and_groups
|
||||
# This user has view_issue_watchers permission
|
||||
@request.session[:user_id] = 1
|
||||
|
||||
@@ -847,10 +847,11 @@ class QueriesControllerTest < Redmine::ControllerTest
|
||||
assert_equal 'application/json', response.media_type
|
||||
json = ActiveSupport::JSON.decode(response.body)
|
||||
|
||||
assert_equal 6, json.count
|
||||
assert_equal 7, json.count
|
||||
# "me" value should not be grouped
|
||||
assert_include ["<< me >>", "me"], json
|
||||
assert_include ["Dave Lopper", "3", "active"], json
|
||||
assert_include ["Dave2 Lopper2", "5", "locked"], json
|
||||
assert_include ["A Team", "10", "active"], json
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user