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
|