WebMock allows stubbing HTTP requests and setting expectations on HTTP requests. WWW: https://github.com/bblimke/webmock