1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
From: Balasankar C <balasankarc@autistici.org>
Date: Tue, 5 Jul 2016 15:47:54 +0200
Subject: Specify available locales during tests.
---
test/helper.rb | 3 +++
1 file changed, 3 insertions(+)
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -37,6 +37,9 @@
require 'sinatra/base'
+require 'i18n'
+I18n.config.available_locales = :en
+
class Sinatra::Base
include Minitest::Assertions
# Allow assertions in request context
|