Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 18:41:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-26 18:41:13 +0300
commit1e61fc763e645038f2da69fc9af6fe166a6b101a (patch)
tree76053795a637d056347c1891d98935c0361a331d /spec/models/group_spec.rb
parent57b9b49b27a730294ae37d2ac25cab943f4b801d (diff)
Add latest changes from gitlab-org/security/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb
index a4e49f88115..d6e76258491 100644
--- a/spec/models/group_spec.rb
+++ b/spec/models/group_spec.rb
@@ -110,6 +110,11 @@ describe Group do
let(:group_notification_email) { 'user+group@example.com' }
let(:subgroup_notification_email) { 'user+subgroup@example.com' }
+ before do
+ create(:email, :confirmed, user: user, email: group_notification_email)
+ create(:email, :confirmed, user: user, email: subgroup_notification_email)
+ end
+
subject { subgroup.notification_email_for(user) }
context 'when both group notification emails are set' do