aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/test
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-24 14:01:52 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-24 14:01:52 +0900
commit90f853581a4122c8afa48094d45ebda893a5b9c9 (patch)
tree14bdc0d118aba47cf4595ce5a405682d1f4c7d57 /actiontext/test
parentd4d53ec4266dc99554c8d05707f8db6294ce46ac (diff)
downloadrails-90f853581a4122c8afa48094d45ebda893a5b9c9.tar.gz
rails-90f853581a4122c8afa48094d45ebda893a5b9c9.tar.bz2
rails-90f853581a4122c8afa48094d45ebda893a5b9c9.zip
Disable available locale checks in Action Test test
Without this change, `store_translations` silently fails when available locales already initialized. Ref: https://travis-ci.org/rails/rails/jobs/497615616#L6846 https://travis-ci.org/rails/rails/jobs/497605027#L6856
Diffstat (limited to 'actiontext/test')
-rw-r--r--actiontext/test/test_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actiontext/test/test_helper.rb b/actiontext/test/test_helper.rb
index fd1c859349..196fba8c99 100644
--- a/actiontext/test/test_helper.rb
+++ b/actiontext/test/test_helper.rb
@@ -14,6 +14,9 @@ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
require "rails/test_unit/reporter"
Rails::TestUnitReporter.executable = "bin/test"
+# Disable available locale checks to allow to add locale after initialized.
+I18n.enforce_available_locales = false
+
# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
ActiveSupport::TestCase.fixture_path = File.expand_path("fixtures", __dir__)