aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-11-02 11:44:05 +0000
committerAndrew White <andrew.white@unboxed.co>2016-11-02 16:15:00 +0000
commit21186270288ef3f8816cecf0aad1e1c537493bee (patch)
tree958f07c3123d739f890261cdfcdb8d70764d2ed2 /activesupport
parentb82fa5cd2e39bf400f61478173885d6c0b480384 (diff)
downloadrails-21186270288ef3f8816cecf0aad1e1c537493bee.tar.gz
rails-21186270288ef3f8816cecf0aad1e1c537493bee.tar.bz2
rails-21186270288ef3f8816cecf0aad1e1c537493bee.zip
Fix warning about unset I18n.enforce_available_locales
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/abstract_unit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index c26a48a490..a777708e0c 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -30,6 +30,9 @@ silence_warnings { require 'mocha/setup' }
ENV['NO_RELOAD'] = '1'
require 'active_support'
+# Disable available locale checks to avoid warnings running the test suite.
+I18n.enforce_available_locales = false
+
# Include shims until we get off 1.8.6
require 'active_support/ruby/shim' if RUBY_VERSION < '1.8.7'