File: 0003-Fix-tests-on-Ruby-2.5.patch

package info (click to toggle)
ruby-oauth2 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 404 kB
  • sloc: ruby: 1,497; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Balint Reczey <balint.reczey@canonical.com>
Date: Thu, 26 Apr 2018 23:02:15 +0200
Subject: Fix tests with ruby-faraday 0.13.1

---
 spec/oauth2/client_spec.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/spec/oauth2/client_spec.rb
+++ b/spec/oauth2/client_spec.rb
@@ -172,7 +172,7 @@
     end
 
     it 'outputs to $stdout when OAUTH_DEBUG=true' do
-      allow(ENV).to receive(:[]).with('http_proxy').and_return(nil)
+      allow(ENV).to receive(:[]).and_return(nil)
       allow(ENV).to receive(:[]).with('OAUTH_DEBUG').and_return('true')
       output = capture_output do
         subject.request(:get, '/success')