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:
authorMario de la Ossa <mariodelaossa@gmail.com>2019-07-24 06:36:07 +0300
committerMario de la Ossa <mariodelaossa@gmail.com>2019-07-26 06:09:25 +0300
commit10a42a8a76c281fad735f89cb3c37caf2acd6e04 (patch)
tree2329ccd5fcdf6920fd282d21d8706ea846a37110 /spec/support
parenta1d1b3aa89850844f824205eb75c56af3b5228f3 (diff)
Respect alt email when sending group access notifications
When sending access granted/rejected emails we should also respect custom emails set for groups/sub-groups
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/notify_shared_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_examples/notify_shared_examples.rb b/spec/support/shared_examples/notify_shared_examples.rb
index 4452b1c82cb..ffc439b63ea 100644
--- a/spec/support/shared_examples/notify_shared_examples.rb
+++ b/spec/support/shared_examples/notify_shared_examples.rb
@@ -50,7 +50,7 @@ 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(:notification_setting, user: recipient, source: project.group, notification_email: group_notification_email)
+ create(:notification_setting, user: recipient, source: group, notification_email: group_notification_email)
expect(subject).to deliver_to(group_notification_email)
end