aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-08-14 18:15:44 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-08-14 18:15:44 +0000
commit30fa7053be89de6a4615788862e052be925342c2 (patch)
tree1e53ff64597c9c501497d6cc5ee5c257ce51105a /activesupport/test
parent2ac4839050f28d78f49d073f0d24dc29dd3e0244 (diff)
downloadrails-30fa7053be89de6a4615788862e052be925342c2.tar.gz
rails-30fa7053be89de6a4615788862e052be925342c2.tar.bz2
rails-30fa7053be89de6a4615788862e052be925342c2.zip
Add silencing to deprecations; avoid self-scolding.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/deprecation_test.rb6
1 files changed, 6 insertions, 0 deletions
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