Library for stubbing and setting expectations on HTTP requests in Ruby.
WebMocks Great 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
- Intelligent matching of the same URIs in different representations (also encoded and non-encoded forms)
- Intelligent matching of the same headers in different representations.
- Support for Test::Unit
- Support for RSpec
- Support for MiniTest