From 4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 23 Jan 2013 07:16:17 +0900 Subject: Missing AS::Deprecation::DeprecatedObjectProxy test --- activesupport/test/deprecation_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activesupport/test/deprecation_test.rb') 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 } -- cgit v1.2.3