aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/old_base/tmail_compat_test.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 18:52:11 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 18:52:11 +0200
commitd500ad3f053517505458c3977f919ee962d04b24 (patch)
treef99963cabda7c6c173b1239b13e520d680a71dda /actionmailer/test/old_base/tmail_compat_test.rb
parentb8655768734140b0f5ef0e91f5233876bb117847 (diff)
downloadrails-d500ad3f053517505458c3977f919ee962d04b24.tar.gz
rails-d500ad3f053517505458c3977f919ee962d04b24.tar.bz2
rails-d500ad3f053517505458c3977f919ee962d04b24.zip
Removed deprecated ActionMailer API and related tests
Diffstat (limited to 'actionmailer/test/old_base/tmail_compat_test.rb')
-rw-r--r--actionmailer/test/old_base/tmail_compat_test.rb42
1 files changed, 0 insertions, 42 deletions
diff --git a/actionmailer/test/old_base/tmail_compat_test.rb b/actionmailer/test/old_base/tmail_compat_test.rb
deleted file mode 100644
index 51558c2bfa..0000000000
--- a/actionmailer/test/old_base/tmail_compat_test.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-require 'abstract_unit'
-
-class TmailCompatTest < ActiveSupport::TestCase
- def setup
- @silence = ActiveSupport::Deprecation.silenced
- ActiveSupport::Deprecation.silenced = false
- end
-
- def teardown
- ActiveSupport::Deprecation.silenced = @silence
- end
-
- def test_set_content_type_raises_deprecation_warning
- mail = Mail.new
- assert_deprecated do
- assert_nothing_raised do
- mail.set_content_type "text/plain"
- end
- end
- assert_equal mail.mime_type, "text/plain"
- end
-
- def test_transfer_encoding_raises_deprecation_warning
- mail = Mail.new
- assert_deprecated do
- assert_nothing_raised do
- mail.transfer_encoding "base64"
- end
- end
- assert_equal mail.content_transfer_encoding, "base64"
- end
-
- def test_transfer_encoding_setter_raises_deprecation_warning
- mail = Mail.new
- assert_deprecated do
- assert_nothing_raised do
- mail.transfer_encoding = "base64"
- end
- end
- assert_equal mail.content_transfer_encoding, "base64"
- end
-end