Add descriptions to examples
This commit is contained in:
parent
4bf26862d0
commit
b36d78eabc
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ describe GroupPolicy do
|
|||
:private,
|
||||
subgroup_creation_level: ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS) }
|
||||
|
||||
it do
|
||||
it 'allows every maintainer permission plus creating subgroups' do
|
||||
allow(Group).to receive(:supports_nested_objects?).and_return(true)
|
||||
|
||||
create_subgroup_permission = [:create_subgroup]
|
||||
|
@ -121,7 +121,7 @@ describe GroupPolicy do
|
|||
end
|
||||
|
||||
context 'with subgroup_creation_level set to owner' do
|
||||
it do
|
||||
it 'allows every maintainer permission' do
|
||||
allow(Group).to receive(:supports_nested_objects?).and_return(true)
|
||||
|
||||
expect_allowed(*guest_permissions)
|
||||
|
|
Loading…
Reference in a new issue