summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/mailers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-27 21:08:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-27 21:08:05 +0000
commit47579e24f3f9f29d5b8093f54e6958fefd7f2057 (patch)
treee8dedf16ceaa2143ce4e81906527a4670cb9916a /spec/support/shared_examples/mailers
parent88ccc935c04ff0e015be60bac02853770b79d28d (diff)
downloadgitlab-ce-47579e24f3f9f29d5b8093f54e6958fefd7f2057.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/shared_examples/mailers')
-rw-r--r--spec/support/shared_examples/mailers/notify_shared_examples.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/shared_examples/mailers/notify_shared_examples.rb b/spec/support/shared_examples/mailers/notify_shared_examples.rb
index 45987059123..1f5803b90a0 100644
--- a/spec/support/shared_examples/mailers/notify_shared_examples.rb
+++ b/spec/support/shared_examples/mailers/notify_shared_examples.rb
@@ -28,6 +28,7 @@ RSpec.shared_examples 'an email sent to a user' do
it 'is sent to user\'s group notification email' do
group_notification_email = 'user+group@example.com'
+ create(:email, :confirmed, user: recipient, email: group_notification_email)
create(:notification_setting, user: recipient, source: group, notification_email: group_notification_email)
expect(subject).to deliver_to(group_notification_email)