From 90f853581a4122c8afa48094d45ebda893a5b9c9 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 24 Feb 2019 14:01:52 +0900 Subject: 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 --- actiontext/test/test_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actiontext/test') 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__) -- cgit v1.2.3