diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 17:31:18 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-24 17:31:18 +0100 |
commit | f30d73bab4c676b187276797ac2a6dc89132c43f (patch) | |
tree | 36cb0f1f3aaa3edf5b7daee48df69d22ae21ba34 /actionmailer/test/tmail_compat_test.rb | |
parent | 7409b734841c8bd691006634dd072212aa905cf4 (diff) | |
download | rails-f30d73bab4c676b187276797ac2a6dc89132c43f.tar.gz rails-f30d73bab4c676b187276797ac2a6dc89132c43f.tar.bz2 rails-f30d73bab4c676b187276797ac2a6dc89132c43f.zip |
Add new class delivery method API.
Diffstat (limited to 'actionmailer/test/tmail_compat_test.rb')
-rw-r--r-- | actionmailer/test/tmail_compat_test.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/actionmailer/test/tmail_compat_test.rb b/actionmailer/test/tmail_compat_test.rb index b7fcb3cfea..7c1d9a07c1 100644 --- a/actionmailer/test/tmail_compat_test.rb +++ b/actionmailer/test/tmail_compat_test.rb @@ -1,19 +1,23 @@ require 'abstract_unit' -class TmailCompatTest < Test::Unit::TestCase +class TmailCompatTest < ActiveSupport::TestCase def test_set_content_type_raises_deprecation_warning mail = Mail.new - assert_nothing_raised do - mail.set_content_type "text/plain" + 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_nothing_raised do - mail.transfer_encoding "base64" + assert_deprecated do + assert_nothing_raised do + mail.transfer_encoding "base64" + end end assert_equal mail.content_transfer_encoding, "base64" end |