summaryrefslogtreecommitdiff
path: root/spec/services/notification_service_spec.rb
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-10 12:58:26 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-11 16:02:09 -0700
commitcc4f77c632130097f6c9667a421d10ce1f47c6c5 (patch)
tree53ae02c0108ef315deee67e661219361e4ee6edc /spec/services/notification_service_spec.rb
parent38737345abdf91ac2cb0b1cdff4eb7132b4104ee (diff)
downloadgitlab-ce-cc4f77c632130097f6c9667a421d10ce1f47c6c5.tar.gz
reset_delivered_emails before testing #new_key
since the mere act of creating the key sends an email :|
Diffstat (limited to 'spec/services/notification_service_spec.rb')
-rw-r--r--spec/services/notification_service_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb
index 8886c71aa5b..d7ac0746df4 100644
--- a/spec/services/notification_service_spec.rb
+++ b/spec/services/notification_service_spec.rb
@@ -91,6 +91,7 @@ describe NotificationService, :mailer do
it 'never emails the ghost user' do
key.user = User.ghost
+ reset_delivered_emails!
notification.new_key(key)
should_not_email_anyone