summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-10-21 18:22:09 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-10-21 18:22:09 +0800
commit2c09d2a13d83494f195fda8620e322dff7738dc5 (patch)
tree6503745cf922e10056885ff09cb5b2374f52fe9d
parent52ed6d8e4ab90b6a467e70aa6ce629e4781a8885 (diff)
downloadgitlab-ce-2c09d2a13d83494f195fda8620e322dff7738dc5.tar.gz
Test against notification email
-rw-r--r--spec/support/email_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/email_helpers.rb b/spec/support/email_helpers.rb
index a946f10f71a..3e979f2f470 100644
--- a/spec/support/email_helpers.rb
+++ b/spec/support/email_helpers.rb
@@ -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!