Merge pull request #3537 from PierreMesure/set-locales-in-test-environment
Set locales in test environment to avoid failed specs
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# Some tests require the following languages (en, es, fr, nl, pt-BR)
|
||||
# so we override the available languages for the test environment.
|
||||
config.i18n.default_locale = :en
|
||||
config.i18n.available_locales = %w[de en es fr nl pt-BR zh-CN]
|
||||
|
||||
# The test environment is used exclusively to run your application's
|
||||
# test suite. You never need to work with it otherwise. Remember that
|
||||
# your test database is "scratch space" for the test suite and is wiped
|
||||
|
||||
Reference in New Issue
Block a user