Re: Running RSpec test, how can I resolve a “Curl::Err::OutOfMemoryError”?

47 views
Skip to first unread message
Message has been deleted

Myron Marston

unread,
Jun 20, 2013, 11:01:39 AM6/20/13
to rs...@googlegroups.com
That error has nothing to do with RSpec (I suspect you'd get it in any test framework).  It's a curb error.  You should check with the curb maintainers.

On Thursday, June 20, 2013 6:47:48 AM UTC-7, enQA wrote:

Running an RSpec test with ruby bindings for libcurl (with 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?

Reply all
Reply to author
Forward
0 new messages