diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-23 07:16:17 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-23 13:29:40 +0900 |
commit | 4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4 (patch) | |
tree | 94d5a49dfdbbf69648422710cd814ef0e68405ba | |
parent | 6343227bb0b3bab1b4e3c9e71ce169b9c462ce0f (diff) | |
download | rails-4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4.tar.gz rails-4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4.tar.bz2 rails-4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4.zip |
Missing AS::Deprecation::DeprecatedObjectProxy test
-rw-r--r-- | activesupport/test/deprecation_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index c1a468ec86..6689c1f11d 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -75,6 +75,11 @@ class DeprecationTest < ActiveSupport::TestCase end end + def test_deprecate_object + deprecated_object = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(Object.new, ':bomb:') + assert_deprecated(/:bomb:/) { deprecated_object.to_s } + end + def test_nil_behavior_is_ignored ActiveSupport::Deprecation.behavior = nil assert_deprecated(/foo=nil/) { @dtc.partially } |