diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-02 11:44:05 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-02 16:15:00 +0000 |
commit | 21186270288ef3f8816cecf0aad1e1c537493bee (patch) | |
tree | 958f07c3123d739f890261cdfcdb8d70764d2ed2 /actionpack | |
parent | b82fa5cd2e39bf400f61478173885d6c0b480384 (diff) | |
download | rails-21186270288ef3f8816cecf0aad1e1c537493bee.tar.gz rails-21186270288ef3f8816cecf0aad1e1c537493bee.tar.bz2 rails-21186270288ef3f8816cecf0aad1e1c537493bee.zip |
Fix warning about unset I18n.enforce_available_locales
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 74efcba666..7ea2c5f061 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -51,6 +51,9 @@ ActiveSupport::Dependencies.hook! # 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', {} |