Skip to content
Snippets Groups Projects
Commit b36d78ea authored by Fabio Papa's avatar Fabio Papa
Browse files

Add descriptions to examples

parent 4bf26862
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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]
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment