diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-07-28 09:58:20 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-07-28 09:58:20 +0000 |
commit | 850a22547ccb0969b3b013dcb891bff90b068d7f (patch) | |
tree | 93f28923f22fac22ed5ee2e94a7173fbcdd03259 /spec/services/groups | |
parent | 3109623d6e03ca1ac677ddbd69e5b8b20f82b65f (diff) | |
parent | d7062dd042f7dd773900ecf6ea79e1ca26592eb5 (diff) | |
download | gitlab-ce-850a22547ccb0969b3b013dcb891bff90b068d7f.tar.gz |
Merge branch 'zj-delete-mm-team' into 'master'
Remove Mattermost team with GitLab group
Closes #30023
See merge request !11362
Diffstat (limited to 'spec/services/groups')
-rw-r--r-- | spec/services/groups/destroy_service_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/groups/destroy_service_spec.rb b/spec/services/groups/destroy_service_spec.rb index 3e7aa8c835c..c18870ea100 100644 --- a/spec/services/groups/destroy_service_spec.rb +++ b/spec/services/groups/destroy_service_spec.rb @@ -35,6 +35,16 @@ describe Groups::DestroyService do it { expect(NotificationSetting.unscoped.all).not_to include(notification_setting) } end + context 'mattermost team' do + let!(:chat_team) { create(:chat_team, namespace: group) } + + it 'destroys the team too' do + expect_any_instance_of(Mattermost::Team).to receive(:destroy) + + destroy_group(group, user, async) + end + end + context 'file system' do context 'Sidekiq inline' do before do |