diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-16 11:07:17 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 14:00:37 -0700 |
commit | 5156a30440a66bb1cf91b0d4e89b52043f0a1d66 (patch) | |
tree | 465b1f71af220b2ee0ef7bdb692dbe9ebaab2f12 /spec/services/groups | |
parent | 0a5346bf11eacd24bfd6811a38901ee62dcf9de3 (diff) | |
download | gitlab-ce-5156a30440a66bb1cf91b0d4e89b52043f0a1d66.tar.gz |
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.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 |