Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-10 22:58:26 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-12 02:02:09 +0300
commitcc4f77c632130097f6c9667a421d10ce1f47c6c5 (patch)
tree53ae02c0108ef315deee67e661219361e4ee6edc /spec
parent38737345abdf91ac2cb0b1cdff4eb7132b4104ee (diff)
reset_delivered_emails before testing #new_key
since the mere act of creating the key sends an email :|
Diffstat (limited to 'spec')
-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