diff options
Diffstat (limited to 'actionmailer/test/tmail_compat_test.rb')
-rw-r--r-- | actionmailer/test/tmail_compat_test.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/actionmailer/test/tmail_compat_test.rb b/actionmailer/test/tmail_compat_test.rb new file mode 100644 index 0000000000..a1ca6a7243 --- /dev/null +++ b/actionmailer/test/tmail_compat_test.rb @@ -0,0 +1,23 @@ +require 'abstract_unit' + +class TmailCompatTest < Test::Unit::TestCase + + def test_set_content_type_raises_deprecation_warning + mail = Mail.new + STDERR.expects(:puts) # Deprecation warning + assert_nothing_raised do + mail.set_content_type "text/plain" + end + assert_equal mail.mime_type, "text/plain" + end + + def test_transfer_encoding_raises_deprecation_warning + mail = Mail.new + STDERR.expects(:puts) # Deprecation warning + assert_nothing_raised do + mail.transfer_encoding "base64" + end + assert_equal mail.content_transfer_encoding, "base64" + end + +end |