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-16 21:07:17 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 23:14:21 +0300
commit5497b3ebefe5371678d81fcdab090b080515911a (patch)
tree01b2b7c32c293eedd1a6aeb3cac2a3e0d6cf4643 /spec/services/groups
parent7b7c14940097612140c71164481a371688d961b2 (diff)
Add failing unit test specifying a maintainer creating a subgroup
Diffstat (limited to 'spec/services/groups')
-rw-r--r--spec/services/groups/create_service_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/groups/create_service_spec.rb b/spec/services/groups/create_service_spec.rb
index c5ff6cdbacd..b4e6ddddfac 100644
--- a/spec/services/groups/create_service_spec.rb
+++ b/spec/services/groups/create_service_spec.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
@@ -87,6 +88,14 @@ describe Groups::CreateService, '#execute' do
it { is_expected.to be_persisted }
end
+
+ context 'as maintainer' do
+ before do
+ group.add_maintainer(user)
+ end
+
+ it { is_expected.to be_persisted }
+ end
end
end