1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

turn off deprecation silencing

This commit is contained in:
Aaron Patterson 2011-01-12 15:28:57 -08:00
parent e1beb7d287
commit c76c699f30

View file

@ -1,6 +1,14 @@
require 'abstract_unit' require 'abstract_unit'
class TmailCompatTest < ActiveSupport::TestCase class TmailCompatTest < ActiveSupport::TestCase
def setup
@silence = ActiveSupport::Deprecation.silenced
ActiveSupport::Deprecation.silenced = false
end
def teardown
ActiveSupport::Deprecation.silenced = @silence
end
def test_set_content_type_raises_deprecation_warning def test_set_content_type_raises_deprecation_warning
mail = Mail.new mail = Mail.new
@ -31,5 +39,4 @@ class TmailCompatTest < ActiveSupport::TestCase
end end
assert_equal mail.content_transfer_encoding, "base64" assert_equal mail.content_transfer_encoding, "base64"
end end
end end