From c32ccd837ee37272b5b7abee6afec40cb45491ed Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sun, 13 Nov 2016 22:28:18 +0000 Subject: Remove deprecated local_constants --- activesupport/test/core_ext/module_test.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index e1e5236e65..121f744a3c 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -385,16 +385,6 @@ class ModuleTest < ActiveSupport::TestCase assert_equal [Yz::Zy, Yz, Object], Yz::Zy::Cd.parents assert_equal [Yz, Object], Yz::Zy.parents end - - def test_local_constants - ActiveSupport::Deprecation.silence do - assert_equal %w(Constant1 Constant3), Ab.local_constants.sort.map(&:to_s) - end - end - - def test_local_constants_is_deprecated - assert_deprecated { Ab.local_constants.sort.map(&:to_s) } - end end module BarMethodAliaser -- cgit v1.2.3