diff --git a/config/environments/test.rb b/config/environments/test.rb index 304339a8a..452f78fd7 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -4,14 +4,7 @@ Rails.application.configure do # 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 - available_locales = [ - "en", - "es", - "fr", - "nl", - "pt-BR" - ] - config.i18n.available_locales = available_locales + 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 diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 4be75fc2b..4474759c1 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -13,7 +13,6 @@ require "capybara/rspec" require "selenium/webdriver" Rails.application.load_tasks if Rake::Task.tasks.empty? -I18n.default_locale = :en include Warden::Test::Helpers Warden.test_mode!