Commit 1cdad622 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Should send to notification_email instead, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17146325
parent a87b6cc3
......@@ -321,7 +321,7 @@ class NotificationService
pipeline,
pipeline.project,
nil, # The acting user, who won't be added to recipients
action: pipeline.status).map(&:email)
action: pipeline.status).map(&:notification_email)
mailer.public_send(email_template, pipeline, recipients).deliver_later
end
......
......@@ -58,7 +58,7 @@ describe PipelinesEmailService do
end
it 'sends email' do
should_only_email(double(email: recipient), kind: :bcc)
should_only_email(double(notification_email: recipient), kind: :bcc)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment