mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
341 B
Ruby
14 lines
341 B
Ruby
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
|