From 78ffdec693fc7cd5aa0fa815a6809abf33255203 Mon Sep 17 00:00:00 2001 From: Em-AK Date: Wed, 29 Mar 2017 04:22:11 +0200 Subject: [PATCH] Force english locale in test environment --- config/environments/test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 228bd1736d..1f725304d0 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -35,6 +35,7 @@ Openfoodnetwork::Application.configure do # Tests assume English text on the site. config.i18n.default_locale = "en" + I18n.locale = config.i18n.locale = config.i18n.default_locale # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper,