File: i18n-fix.patch

package info (click to toggle)
ruby-sinatra 3.0.5-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,944 kB
  • sloc: ruby: 17,305; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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/helper.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/helper.rb b/test/helper.rb
index 1b1315e..f098876 100644
--- a/test/helper.rb
+++ b/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