Permalink
Browse files

Missing AS::Deprecation::DeprecatedObjectProxy test

  • Loading branch information...
1 parent 6343227 commit 4c5c98d0d334e6bd69ea93dbcad10a70fcbfa9d4 @amatsuda amatsuda committed Jan 22, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 activesupport/test/deprecation_test.rb
@@ -75,6 +75,11 @@ def test_deprecate_class_method
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 }

0 comments on commit 4c5c98d

Please sign in to comment.