Skip to content

Commit

Permalink
Disable available locale checks in Action Test test
Browse files Browse the repository at this point in the history
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
  • Loading branch information
y-yagi committed Feb 24, 2019
1 parent d4d53ec commit 90f8535
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actiontext/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
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__)
Expand Down

0 comments on commit 90f8535

Please sign in to comment.