From 21186270288ef3f8816cecf0aad1e1c537493bee Mon Sep 17 00:00:00 2001 From: Andrew White Date: Wed, 2 Nov 2016 11:44:05 +0000 Subject: Fix warning about unset I18n.enforce_available_locales --- activemodel/test/cases/helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activemodel') diff --git a/activemodel/test/cases/helper.rb b/activemodel/test/cases/helper.rb index 2e860272a4..84f6a464cd 100644 --- a/activemodel/test/cases/helper.rb +++ b/activemodel/test/cases/helper.rb @@ -10,4 +10,7 @@ require 'active_support/core_ext/string/access' # 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 + require 'test/unit' -- cgit v1.2.3