Commit 911ba11f authored by Fabio Papa's avatar Fabio Papa Committed by Imre Farkas

Add descriptions to examples

parent 7bc5133c
...@@ -103,7 +103,7 @@ describe GroupPolicy do ...@@ -103,7 +103,7 @@ describe GroupPolicy do
:private, :private,
subgroup_creation_level: ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS) } 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) allow(Group).to receive(:supports_nested_objects?).and_return(true)
create_subgroup_permission = [:create_subgroup] create_subgroup_permission = [:create_subgroup]
...@@ -121,7 +121,7 @@ describe GroupPolicy do ...@@ -121,7 +121,7 @@ describe GroupPolicy do
end end
context 'with subgroup_creation_level set to owner' do 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) allow(Group).to receive(:supports_nested_objects?).and_return(true)
expect_allowed(*guest_permissions) expect_allowed(*guest_permissions)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment