From 345e622a20fd14a356a69da40e527075b1117b52 Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Wed, 30 Dec 2009 16:12:51 +1100 Subject: Adding TMailCompat layer for :set_content_type and friends --- actionmailer/test/tmail_compat_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 actionmailer/test/tmail_compat_test.rb (limited to 'actionmailer/test') 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 -- cgit v1.2.3