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 subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c53b281c-ef04-4038-a0f0-37172a4d709c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to