From 5aa3ebde9c58d343e2df2df0de35a30126c8b560 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 7 Oct 2015 14:05:50 +1100 Subject: [PATCH] Set the locale to "en" in test environment. --- config/environments/test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 67131b6489..228bd1736d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -33,6 +33,9 @@ Openfoodnetwork::Application.configure do # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test + # Tests assume English text on the site. + config.i18n.default_locale = "en" + # 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, # like if you have constraints or database-specific column types