diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-18 19:12:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-18 19:12:17 +0000 |
commit | 3811ff5d95bd848f457c9d29a162ce83f12fe3ac (patch) | |
tree | 9e3f8a933f1ce6124350a69e205e4f6f18cc35cf /test/unit/principal_test.rb | |
parent | d48146c386c153f1ccaacfa45f420e09868570dd (diff) | |
download | redmine-3811ff5d95bd848f457c9d29a162ce83f12fe3ac.tar.gz redmine-3811ff5d95bd848f457c9d29a162ce83f12fe3ac.zip |
Deprecates Project#member_principals.
git-svn-id: http://svn.redmine.org/redmine/trunk@14332 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/principal_test.rb')
-rw-r--r-- | test/unit/principal_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb index fd8b4009f..b05f8950b 100644 --- a/test/unit/principal_test.rb +++ b/test/unit/principal_test.rb @@ -48,7 +48,7 @@ class PrincipalTest < ActiveSupport::TestCase Role.non_member.update! :users_visibility => 'members_of_visible_projects' user = User.generate! - expected = Project.visible(user).map(&:member_principals).flatten.map(&:principal).uniq << user + expected = Project.visible(user).map {|p| p.memberships.active}.flatten.map(&:principal).uniq << user assert_equal expected.map(&:id).sort, Principal.visible(user).pluck(:id).sort end |