diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-08-10 22:58:26 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-12 02:02:09 +0300 |
commit | cc4f77c632130097f6c9667a421d10ce1f47c6c5 (patch) | |
tree | 53ae02c0108ef315deee67e661219361e4ee6edc /spec | |
parent | 38737345abdf91ac2cb0b1cdff4eb7132b4104ee (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.rb | 1 |
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 |