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-20 00:00:37 +0300
commit5156a30440a66bb1cf91b0d4e89b52043f0a1d66 (patch)
tree465b1f71af220b2ee0ef7bdb692dbe9ebaab2f12 /spec/services/groups
parent0a5346bf11eacd24bfd6811a38901ee62dcf9de3 (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