File: 0001-Fix-tests-with-rest-client-2.patch

package info (click to toggle)
ruby-rushover 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 128 kB
  • sloc: ruby: 271; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Daniel Leidert <daniel.leidert@wgdd.de>
Date: Fri, 28 Feb 2020 01:04:05 +0100
Subject: Fix tests with rest-client 2

https://github.com/chrisk/fakeweb/issues/61
---
 test/test_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_helper.rb b/test/test_helper.rb
index ec9fcb2..4461097 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -21,7 +21,7 @@ class RushoverTest < Test::Unit::TestCase
   end
 
   def last_request_param(param)
-    params = CGI.parse(FakeWeb.last_request.body)
+    params = CGI.parse(FakeWeb.last_request.body_stream.instance_variable_get('@stream').string)
     Array(params[param]).first
   end
 end