require 'apostle'
require "apostle_rails/version"
require "apostle_rails/mailer"

if defined?(Rails) && Rails.env.test?
  Apostle.configure do |config|
    config.deliver = false
  end
end

require "apostle_rails/version"
require "apostle_rails/mailer"

--- 
+++ 
@@ -1,2 +1,9 @@
+require 'apostle'
 require "apostle_rails/version"
 require "apostle_rails/mailer"
+
+if defined?(Rails) && Rails.env.test?
+  Apostle.configure do |config|
+    config.deliver = false
+  end
+end
Set apostle config if in rails test mode
