Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-01 19:56:02 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:49 +0300
commitb36d78eabc53bb6a457c45b67a65276c85bf2b8a (patch)
tree0dbd91a288891e1965c4ec52c34a70fbe4fa90ab /spec/policies
parent4bf26862d09e1f20bae2fa36be72ec6387a547ba (diff)
Add descriptions to examples
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/group_policy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/policies/group_policy_spec.rb b/spec/policies/group_policy_spec.rb
index 7fba62d2aa8..020b51f776e 100644
--- a/spec/policies/group_policy_spec.rb
+++ b/spec/policies/group_policy_spec.rb
@@ -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)