WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
Bartosz Blimke
gem "webmock", "~> 0.9.0"