aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/tmail_compat_test.rb
blob: 9b0e91f5f805ebfeb5d97767517982c1e00948d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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