File: i18n-fix.patch

package info (click to toggle)
ruby-sinatra 4.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,940 kB
  • sloc: ruby: 17,702; sh: 25; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Balasankar C <balasankarc@autistici.org>
Date: Tue, 5 Jul 2016 15:47:54 +0200
Subject: Specify available locales during tests.

---
 test/test_helper.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_helper.rb b/test/test_helper.rb
index 1b1315e..f098876 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -37,6 +37,9 @@ require 'active_support/core_ext/hash/keys'
 
 require 'sinatra/base'
 
+require 'i18n'
+I18n.config.available_locales = :en
+
 class Sinatra::Base
   include Minitest::Assertions
   # Allow assertions in request context