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-06-28 23:31:47 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 23:00:05 +0300
commit0b708e5d36f75b8c82b313737bffbdcc2f7e0255 (patch)
tree79fd0dca116838385f44f7a7a8fbe31d373af535 /spec/models/group_spec.rb
parent6f3b2e07dc394477636e7ea40749f8a7f51e3de7 (diff)
Style rules; Revert some examples
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index c7fb0f51075..6627177ad61 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -996,9 +996,11 @@ describe Group do
end
describe 'subgroup_creation_level' do
- it 'defaults to maintainers' do
+ it 'outputs the default one if it is nil' do
+ group = create(:group, subgroup_creation_level: nil)
+
expect(group.subgroup_creation_level)
- .to eq(Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS)
+ .to eq(::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS)
end
end
end