Skip to content
This repository
Browse code

Remove the ActionMailer usage

  • Loading branch information...
commit 6eee9b01d34597b73acbb0aa8136ac504f096b66 1 parent 7570889
Mike Burns authored September 26, 2012
1  spec/dummy/config/application.rb
@@ -3,7 +3,6 @@
3 3
 require "active_model/railtie"
4 4
 require "action_controller/railtie"
5 5
 require "action_view/railtie"
6  
-require "action_mailer/railtie"
7 6
 
8 7
 Bundler.require
9 8
 require "high_voltage"
5  spec/dummy/config/environments/test.rb
@@ -20,11 +20,6 @@
20 20
   # Disable request forgery protection in test environment
21 21
   config.action_controller.allow_forgery_protection    = false
22 22
 
23  
-  # Tell Action Mailer not to deliver emails to the real world.
24  
-  # The :test delivery method accumulates sent emails in the
25  
-  # ActionMailer::Base.deliveries array.
26  
-  config.action_mailer.delivery_method = :test
27  
-
28 23
   # Use SQL instead of Active Record's schema dumper when creating the test database.
29 24
   # This is necessary if your schema can't be completely dumped by the schema dumper,
30 25
   # like if you have constraints or database-specific column types
4  spec/spec_helper.rb
@@ -5,10 +5,6 @@
5 5
 require "rails/test_help"
6 6
 require "rspec/rails"
7 7
 
8  
-ActionMailer::Base.delivery_method = :test
9  
-ActionMailer::Base.perform_deliveries = true
10  
-ActionMailer::Base.default_url_options[:host] = "test.com"
11  
-
12 8
 Rails.backtrace_cleaner.remove_silencers!
13 9
 
14 10
 # Configure capybara for integration testing

0 notes on commit 6eee9b0

Please sign in to comment.
Something went wrong with that request. Please try again.