diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-16 21:07:17 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 22:06:56 +0300 |
commit | 899df973dc429c796c57840f7531f5d083c4d298 (patch) | |
tree | 98b18172fde315bc682815c17f8697fd8d9672db /spec/services/groups | |
parent | 832f668f295d20e00db8d7bd71627724da3a45f3 (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.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 |