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