aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-17 08:22:26 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-17 08:22:26 -0800
commitae196e85ee7169700afac2eecdc276bc06b10b8d (patch)
treeea504d00de22f81a34b84cd5852e5f1dd043cb7c /actionview/test
parent5d77edf0cf1ed653ed3f7729d77eeb8de219d0b3 (diff)
parent7c858b03a9de3c600594ca3c88540b14d835dd91 (diff)
downloadrails-ae196e85ee7169700afac2eecdc276bc06b10b8d.tar.gz
rails-ae196e85ee7169700afac2eecdc276bc06b10b8d.tar.bz2
rails-ae196e85ee7169700afac2eecdc276bc06b10b8d.zip
Merge pull request #13341 from carlosantoniodasilva/ca-i18n
Default I18n.enforce_available_locales to true We will default this option to true from now on to ensure users properly handle their list of available locales whenever necessary. This option was added as a security measure and thus Rails will follow it defaulting to secure option. Also improve the handling of I18n config options in its railtie, taking the new enforce_available_locales option into account, by setting it as the last one in the process. This ensures no other configuration will trigger a deprecation warning due to that setting.
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/abstract_unit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb
index eef0abb609..9928da4774 100644
--- a/actionview/test/abstract_unit.rb
+++ b/actionview/test/abstract_unit.rb
@@ -42,6 +42,9 @@ Thread.abort_on_exception = true
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
+# Disable available locale checks to avoid warnings running the test suite.
+I18n.enforce_available_locales = false
+
# Register danish language for testing
I18n.backend.store_translations 'da', {}
I18n.backend.store_translations 'pt-BR', {}