diff --git a/lib/email_spec/deliveries.rb b/lib/email_spec/deliveries.rb
index <HASH>..<HASH> 100644
--- a/lib/email_spec/deliveries.rb
+++ b/lib/email_spec/deliveries.rb
@@ -9,7 +9,11 @@ module EmailSpec
     end
 
     def reset_mailer
-      deliveries.clear
+      if ActionMailer::Base.delivery_method == :cache
+        mailer.clear_cache
+      else
+        deliveries.clear
+      end
     end
 
     def mailbox_for(address)
Support cache method in reset_mailer

When reset_mailer is called with a :cache delivery method, the
deliveries array is cleared, but the cache remains. Added a check for
:cache method, and called clear_cache so the cache file can correctly be
emptied.