diff options
author | Xavier Noria <fxn@hashref.com> | 2012-01-12 12:17:24 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-01-12 12:17:35 -0800 |
commit | 04df7bb02c8a267ec7cd1c20ba20a49a24cffb2f (patch) | |
tree | feeaaada1aef0e1055bd1626274dfd7a49d0e29d /activesupport/test/core_ext | |
parent | 3c64548859a9e778bc6f5b0bdb796dc1b5136c3d (diff) | |
download | rails-04df7bb02c8a267ec7cd1c20ba20a49a24cffb2f.tar.gz rails-04df7bb02c8a267ec7cd1c20ba20a49a24cffb2f.tar.bz2 rails-04df7bb02c8a267ec7cd1c20ba20a49a24cffb2f.zip |
deprecates Module#local_constant_names
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index 950ef82a3c..09ca4e7296 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -212,6 +212,12 @@ class ModuleTest < ActiveSupport::TestCase def test_local_constants assert_equal %w(Constant1 Constant3), Ab.local_constants.sort.map(&:to_s) end + + def test_local_constant_names + ActiveSupport::Deprecation.silence do + assert_equal %w(Constant1 Constant3), Ab.local_constant_names + end + end end module BarMethodAliaser |