diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 03:09:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 03:09:44 +0300 |
commit | e512af1d82777b8bcf0bc678b8aeb3b96ef406a2 (patch) | |
tree | ebff9b5da0ca2e789502a91f7582985cf4ae091f /spec/policies/group_member_policy_spec.rb | |
parent | e8c01bc6a16cc4aa934ac42cccb7b287527c93f0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies/group_member_policy_spec.rb')
-rw-r--r-- | spec/policies/group_member_policy_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/policies/group_member_policy_spec.rb b/spec/policies/group_member_policy_spec.rb index 6099e4549b1..d283b0ffda5 100644 --- a/spec/policies/group_member_policy_spec.rb +++ b/spec/policies/group_member_policy_spec.rb @@ -90,6 +90,14 @@ RSpec.describe GroupMemberPolicy do specify { expect_allowed(:read_group) } end + context 'with one blocked owner' do + let(:owner) { create(:user, :blocked) } + let(:current_user) { owner } + + specify { expect_disallowed(*member_related_permissions) } + specify { expect_disallowed(:read_group) } + end + context 'with more than one owner' do let(:current_user) { owner } |