File: encoding.patch

package info (click to toggle)
ruby-httparty 0.16.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 840 kB
  • sloc: ruby: 5,567; xml: 425; sh: 35; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: force encoding to UTF-8 to fix tests on default build environments
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2018-08-16

--- a/spec/httparty/request/body_spec.rb
+++ b/spec/httparty/request/body_spec.rb
@@ -1,5 +1,7 @@
 require_relative '../../spec_helper'
 
+Encoding.default_external="UTF-8" if defined? Encoding
+
 RSpec.describe HTTParty::Request::Body do
   describe '#call' do
     subject { described_class.new(params).call }