BigW Consortium Gitlab

Commit 1cdad622 by Lin Jen-Shin

Should send to notification_email instead, feedback:

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