diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 00:06:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 00:06:23 +0300 |
commit | a82d0c740b338ad981321a3111b731ad78364ba1 (patch) | |
tree | 20439aae82f7bfeeb3107fefd09dc89d95eb406e /spec | |
parent | 40597fdec080d55d36e97aab1a0b98dfc35517b9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/finders/members_finder_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/finders/members_finder_spec.rb b/spec/finders/members_finder_spec.rb index 6920fb4e572..5134db96133 100644 --- a/spec/finders/members_finder_spec.rb +++ b/spec/finders/members_finder_spec.rb @@ -86,10 +86,8 @@ describe MembersFinder, '#execute' do create(:project_group_link, project: project, group: nested_linked_group, group_access: Gitlab::Access::REPORTER) nested_linked_group.add_developer(user1) - result = subject - - expect(result).to contain_exactly(linked_group_member, nested_linked_group_member) - expect(result.first.access_level).to eq(Gitlab::Access::REPORTER) + expect(subject.map(&:user)).to contain_exactly(user1, user2) + expect(subject.max_by(&:access_level).access_level).to eq(Gitlab::Access::REPORTER) end end end |