aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-12-30 00:18:41 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-12-30 00:18:41 -0800
commit97204fc0bc52af8fb6714e6f9fcd414567e0fc1a (patch)
tree929b542e944fdb0e13eff509d690f032e2f581b4 /actionmailer/test
parent8734f9a2710e6ad62caa7e1dcf543b83562e18ed (diff)
parent345e622a20fd14a356a69da40e527075b1117b52 (diff)
downloadrails-97204fc0bc52af8fb6714e6f9fcd414567e0fc1a.tar.gz
rails-97204fc0bc52af8fb6714e6f9fcd414567e0fc1a.tar.bz2
rails-97204fc0bc52af8fb6714e6f9fcd414567e0fc1a.zip
Merge commit 'mikel/master'
Diffstat (limited to 'actionmailer/test')
-rw-r--r--actionmailer/test/tmail_compat_test.rb14
1 files changed, 14 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..9b0e91f5f8
--- /dev/null
+++ b/actionmailer/test/tmail_compat_test.rb
@@ -0,0 +1,14 @@
+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.content_type.string, "text/plain"
+ end
+
+end