Running an RSpec test with ruby bindings for libcurl (with 
curb<https://github.com/taf2/curb>) 
like so:

it "Should return JSON data with usernames" do
  $var = Curl::Easy.new("some-url.com")
  $var.perform
  data = JSON.parse($var.body_str)
  data['username'].should eq('some user')end

and sometimes I get this error:

Failure/Error: $var.perform
 Curl::Err::OutOfMemoryError:
   Curl::Err::OutOfMemoryError

Anyone know how to resolve this?

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/9e5b5904-564e-4a8d-8e17-0506b815583f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to