diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-04-19 14:53:04 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-04-19 14:53:04 +0300 |
commit | a9da37434af6d44c5f851affd4bd69b370760e8e (patch) | |
tree | 80181812f037b96de8867502f4dd8a110bd05cd4 /spec/services | |
parent | 4bb34d52ffb31f34af4d3a858679a1fb08891983 (diff) | |
parent | d4861ec72d9b01abf19f1bcd6aa5afa7b7201578 (diff) |
Merge branch 'fix/orphan-notification-settings' into 'master'
Fix orphaned notification settings
Closes #29688
See merge request !10763
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/groups/destroy_service_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/groups/destroy_service_spec.rb b/spec/services/groups/destroy_service_spec.rb index 2ee11fc8b4c..a37257d1bf4 100644 --- a/spec/services/groups/destroy_service_spec.rb +++ b/spec/services/groups/destroy_service_spec.rb @@ -7,6 +7,7 @@ describe Groups::DestroyService, services: true do let!(:group) { create(:group) } let!(:nested_group) { create(:group, parent: group) } let!(:project) { create(:empty_project, namespace: group) } + let!(:notification_setting) { create(:notification_setting, source: group)} let!(:gitlab_shell) { Gitlab::Shell.new } let!(:remove_path) { group.path + "+#{group.id}+deleted" } @@ -23,6 +24,7 @@ describe Groups::DestroyService, services: true do it { expect(Group.unscoped.all).not_to include(group) } it { expect(Group.unscoped.all).not_to include(nested_group) } it { expect(Project.unscoped.all).not_to include(project) } + it { expect(NotificationSetting.unscoped.all).not_to include(notification_setting) } end context 'file system' do |