diff options
Diffstat (limited to 'spec/finders/groups_finder_spec.rb')
-rw-r--r-- | spec/finders/groups_finder_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/finders/groups_finder_spec.rb b/spec/finders/groups_finder_spec.rb index 78764f79a6c..48e4c5dadc9 100644 --- a/spec/finders/groups_finder_spec.rb +++ b/spec/finders/groups_finder_spec.rb @@ -150,6 +150,14 @@ RSpec.describe GroupsFinder do end end end + + context 'being minimal access member of parent group' do + it 'do not return group with minimal_access access' do + create(:group_member, :minimal_access, user: user, source: parent_group) + + is_expected.to contain_exactly(public_subgroup, internal_subgroup) + end + end end end end |