From 30fa7053be89de6a4615788862e052be925342c2 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Mon, 14 Aug 2006 18:15:44 +0000 Subject: Add silencing to deprecations; avoid self-scolding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/deprecation_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/test/deprecation_test.rb') diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb index 1a054335d7..7c5cb5783c 100644 --- a/activesupport/test/deprecation_test.rb +++ b/activesupport/test/deprecation_test.rb @@ -78,4 +78,10 @@ class DeprecationTest < Test::Unit::TestCase end end + def test_silence + ActiveSupport::Deprecation.silence do + assert_not_deprecated { @dtc.partially } + end + end + end -- cgit v1.2.3