When running your tests / specs, the monkey-patch run method of your Request class to connect to the Marston VCR library. See the existing library_hooks subdirectory for examples and ideas on how to do this - the fakeweb implementation is a good place to start.
The VCR works well with live services such as Facebook because it captures interactions βas isβ, and VCRs can be easily overwritten when services are changed.
I have problems with your library. You will need the cgi and json libraries; it also looks like it requires a Rails environment (it does not find with_indifferent_access on Hash ).
source share