diff options
author | Go MAEDA <maeda@farend.jp> | 2018-06-09 08:07:08 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-06-09 08:07:08 +0000 |
commit | b4d3715dc0f6bd16a5ff491997846b2242334812 (patch) | |
tree | b7c87225909aa2e5caae8be10aa079214b35b0b9 /test/unit/principal_test.rb | |
parent | bff0fbce8baeddb3bba4d04131f1368763078e36 (diff) | |
download | redmine-b4d3715dc0f6bd16a5ff491997846b2242334812.tar.gz redmine-b4d3715dc0f6bd16a5ff491997846b2242334812.zip |
Include locked members in filters (#15201).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17371 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/principal_test.rb')
-rw-r--r-- | test/unit/principal_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb index bb03a088e..3fbd2bb05 100644 --- a/test/unit/principal_test.rb +++ b/test/unit/principal_test.rb @@ -52,11 +52,11 @@ class PrincipalTest < ActiveSupport::TestCase assert_equal expected.map(&:id).sort, Principal.visible(user).pluck(:id).sort end - def test_member_of_scope_should_return_the_union_of_all_members + def test_member_of_scope_should_return_the_union_of_all_active_and_locked_members projects = Project.find([1]) - assert_equal [3, 2], Principal.member_of(projects).sort.map(&:id) + assert_equal [3, 5, 2], Principal.member_of(projects).sort.map(&:id) projects = Project.find([1, 2]) - assert_equal [3, 2, 8, 11], Principal.member_of(projects).sort.map(&:id) + assert_equal [3, 5, 2, 8, 11], Principal.member_of(projects).sort.map(&:id) end def test_member_of_scope_should_be_empty_for_no_projects |