Search code examples
ruby-on-railsrubymockingcurb

Mock out Curl::Easy.perform? (in Curb)


Is there a way to mock out Curb's Easy.perform method for unit testing? I use this to hit Facebook's graph API, and none of the http mock libs seem to support Curb.

What's the best approach here?


Solution

  • WebMock has recently added Curb support. :)

    http://github.com/bblimke/webmock