aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNick LaMuro <nicklamuro@gmail.com>2017-10-23 11:11:59 -0500
committerNick LaMuro <nicklamuro@gmail.com>2017-10-28 17:32:32 -0500
commitb2545e4106c8388cb2a4d9e06c31954e5ee2c948 (patch)
treec79b1de9b9e1f140c54fccdadb4755ae7a295310 /actionpack
parenta822fc513cb3c98207a14fc203c973e13f42e306 (diff)
downloadrails-b2545e4106c8388cb2a4d9e06c31954e5ee2c948.tar.gz
rails-b2545e4106c8388cb2a4d9e06c31954e5ee2c948.tar.bz2
rails-b2545e4106c8388cb2a4d9e06c31954e5ee2c948.zip
Deprecate ActiveSupport::Inflector#acronym_regex
To be removed in Rails 6.0 (default for the deprecate helper). Code moved around as well for the ActiveSupport::Deprecation modules, since it was dependent on ActiveSupport::Inflector being loaded for it to work. By "lazy loading" the Inflector code from within the Deprecation code, we can require ActiveSupport::Deprecation from ActiveSupport::Inflector and not get a circular dependency issue.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/request_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb
index 2057aecbf9..8661dc56d6 100644
--- a/actionpack/test/dispatch/request_test.rb
+++ b/actionpack/test/dispatch/request_test.rb
@@ -763,7 +763,7 @@ class RequestMethod < BaseRequestTest
test "post uneffected by local inflections" do
existing_acronyms = ActiveSupport::Inflector.inflections.acronyms.dup
- existing_acronym_regex = ActiveSupport::Inflector.inflections.acronym_regex.dup
+ assert_deprecated { ActiveSupport::Inflector.inflections.acronym_regex.dup }
begin
ActiveSupport::Inflector.inflections do |inflect|
inflect.acronym "POS"