
WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.
Features
* Stubbing HTTP requests at low http client lib level (no need to change tests when you change HTTP library). * Setting and verifying expectations on HTTP requests. * Matching requests based on method, URI, headers and body. * Smart matching of the same URIs in different representations (also encoded and non encoded forms). * Smart matching of the same headers in different representations.