Displaying 1 result from an estimated 1 matches for "body_str".
Did you mean:
body_ctx
2013 Jun 19
0
Running RSpec tests, how can I resolve a “Curl::Err::OutOfMemoryError”?
Running an rspec test with ruby bindings for libcurl (with curb<https://github.com/taf2/curb>)
like so:
it "Should return a certain user in a JSON array" do
$var = Curl::Easy.new("some-url.com")
$var.perform
response = JSON.parse($var.body_str)
response[''user''].should eq(''some user name'')
end
and sometimes I get this error:
Failure/Error: $var.perform
Curl::Err::OutOfMemoryError:
Curl::Err::OutOfMemoryError
Anyone know how to resolve this? Thanks.
--
You received this message because you are...