aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/old_base/tmail_compat_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-30 16:39:27 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-30 16:39:27 +0100
commit2d567e470adb9241b400e02ccb0501efb7d09b14 (patch)
tree66b88d87186260cdc3d9585ffb9dda2e59d451b9 /actionmailer/test/old_base/tmail_compat_test.rb
parent0e063f435ce31a091d1097156172d551bd9d9d37 (diff)
downloadrails-2d567e470adb9241b400e02ccb0501efb7d09b14.tar.gz
rails-2d567e470adb9241b400e02ccb0501efb7d09b14.tar.bz2
rails-2d567e470adb9241b400e02ccb0501efb7d09b14.zip
Add transfer_encoding= setter deprecation.
Diffstat (limited to 'actionmailer/test/old_base/tmail_compat_test.rb')
-rw-r--r--actionmailer/test/old_base/tmail_compat_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionmailer/test/old_base/tmail_compat_test.rb b/actionmailer/test/old_base/tmail_compat_test.rb
index 7c1d9a07c1..255205de84 100644
--- a/actionmailer/test/old_base/tmail_compat_test.rb
+++ b/actionmailer/test/old_base/tmail_compat_test.rb
@@ -21,5 +21,15 @@ class TmailCompatTest < ActiveSupport::TestCase
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