diff options
author | Lucas Mazza <lucastmazza@gmail.com> | 2014-08-19 23:53:19 -0300 |
---|---|---|
committer | Lucas Mazza <lucastmazza@gmail.com> | 2014-08-19 23:53:19 -0300 |
commit | 63f7b22a4edb4d35f8a209733e44c015d12f55a3 (patch) | |
tree | 85c0d0fdff7ecffffde6e22f726fa2f61faf0cfe | |
parent | 78728af2c9bba23ac96c8e78666102f58e6c890d (diff) | |
download | rails-63f7b22a4edb4d35f8a209733e44c015d12f55a3.tar.gz rails-63f7b22a4edb4d35f8a209733e44c015d12f55a3.tar.bz2 rails-63f7b22a4edb4d35f8a209733e44c015d12f55a3.zip |
Remove global helpers from the ActionMailer test suite.
-rw-r--r-- | actionmailer/test/abstract_unit.rb | 9 | ||||
-rw-r--r-- | actionmailer/test/asset_host_test.rb | 5 |
2 files changed, 1 insertions, 13 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index c549545674..c4dbbe25f6 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -32,15 +32,6 @@ module Rails end end -def set_delivery_method(method) - @old_delivery_method = ActionMailer::Base.delivery_method - ActionMailer::Base.delivery_method = method -end - -def restore_delivery_method - ActionMailer::Base.delivery_method = @old_delivery_method -end - # Skips the current run on Rubinius using Minitest::Assertions#skip def rubinius_skip(message = '') skip message if RUBY_ENGINE == 'rbx' diff --git a/actionmailer/test/asset_host_test.rb b/actionmailer/test/asset_host_test.rb index 9ba67c2842..dd3b38544f 100644 --- a/actionmailer/test/asset_host_test.rb +++ b/actionmailer/test/asset_host_test.rb @@ -9,11 +9,8 @@ class AssetHostMailer < ActionMailer::Base end end -class AssetHostTest < ActiveSupport::TestCase +class AssetHostTest < ActionMailer::TestCase def setup - set_delivery_method :test - ActionMailer::Base.perform_deliveries = true - ActionMailer::Base.deliveries.clear AssetHostMailer.configure do |c| c.asset_host = "http://www.example.com" end |