Debian Codegraph @

debian/patches/001_fix-encoding.patch

raw
1 From: =?utf-8?q?C=C3=A9dric_Boutillier?= <[email protected]>
2 Date: Thu, 6 Feb 2020 12:49:05 +0100
3 Subject: Fix encoding error in test suite with Ruby 1.9 and 2.0
4
5 Origin: vendor
6 Forwarded: no
7 Reviewed-By: Sebastien Badia <[email protected]>
8 Last-Update: 2015-04-10
9
10 Fixes a failing test with Ruby 1.9
11 ---
12 test/helper.rb | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/test/helper.rb b/test/helper.rb
16 index 77167bf..494b586 100644
17 --- a/test/helper.rb
18 +++ b/test/helper.rb
19 @@ -3,6 +3,8 @@ SimpleCov.start do
20 add_filter '/test/'
21 end
22
23 +Encoding.default_external = Encoding::UTF_8 if defined? Encoding
24 +
25 require 'minitest/autorun'
26
27 Dir[File.dirname(__FILE__) + '/fixtures/*.rb'].each do |f|