I wrote my own FaceBook library that uses actual Curl requests, not libcurl.
Is there a way to test it? I’m asking this because most solutions involve using something like fakeweb which as far as I can tell will not work here.
The existing code can be found on my github page.
You could mock
Request.dispatcherwith an expected behavior, pretty much like Fakeweb would do.There are a few examples on this file, specially https://github.com/chrisk/fakeweb/blob/master/lib/fake_web/ext/net_http.rb#L44.