File: encoding_readme_spec.patch

package info (click to toggle)
ruby-cucumber-core 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 564 kB
  • ctags: 732
  • sloc: ruby: 5,762; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Set external encoding to UTF-8 for readme_spec.rb
 In sbuild environment, the default external encoding for specs run by the rake
 method seems to be ASCII. This causes an encoding error when trying to read
 the UTF-8 README file.
 Default external encoding is thus forced in this test file to UTF-8 to ensure
 that the file will be read correctly.
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2015-05-28

--- ruby-cucumber-core-1.1.3.orig/spec/readme_spec.rb
+++ ruby-cucumber-core-1.1.3/spec/readme_spec.rb
@@ -1,3 +1,5 @@
+Encoding.default_external = "UTF-8"
+
 require 'stringio'
 require 'kramdown'