diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-16 11:07:17 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 11:55:49 -0700 |
commit | 0ec6e5d851631f8b2175c86104c73158ddc9065d (patch) | |
tree | ef3a87e89d555974c74366d7a01f062ad1e55813 /spec/services | |
parent | d4c53e1799d4967c20ac771f6628416183985ef4 (diff) | |
download | gitlab-ce-0ec6e5d851631f8b2175c86104c73158ddc9065d.tar.gz |
Add failing unit test specifying a maintainer creating a subgroup
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/groups/create_service_spec.rb | 9 |
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 |