Test against notification email

This commit is contained in:
Lin Jen-Shin 2016-10-21 18:22:09 +08:00
parent 52ed6d8e4a
commit 2c09d2a13d

View file

@ -1,6 +1,6 @@
module EmailHelpers
def sent_to_user?(user, recipients = email_recipients)
recipients.include?(user.email)
recipients.include?(user.notification_email)
end
def reset_delivered_emails!