diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-01 14:40:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-01 14:40:17 -0300 |
commit | 56f3bbc5b0920e44fcac83ed2d38eb90b3744183 (patch) | |
tree | 63709bb5c06903fab44db557f33dfbf71e557856 /activesupport/test | |
parent | bc57930e09d20ee2cdc4b5aa7200b155ba755f22 (diff) | |
parent | 86d4e189580e84c4b7effc0c3ebd25b4e8dc4fee (diff) | |
download | rails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.tar.gz rails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.tar.bz2 rails-56f3bbc5b0920e44fcac83ed2d38eb90b3744183.zip |
Merge pull request #23936 from yui-knk/local_constants_to_be_public
Deprecate `Module.local_constants`
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index 0ed66f8c37..cbe025624c 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -328,7 +328,13 @@ class ModuleTest < ActiveSupport::TestCase end def test_local_constants - assert_equal %w(Constant1 Constant3), Ab.local_constants.sort.map(&:to_s) + ActiveSupport::Deprecation.silence do + assert_equal %w(Constant1 Constant3), Ab.local_constants.sort.map(&:to_s) + end + end + + def test_test_local_constants_is_deprecated + assert_deprecated { Ab.local_constants.sort.map(&:to_s) } end end |