TDD with WebMock
summary
Describes building WebMock to stop fragile, client-specific HTTP stubs by matching requests by URI, headers and body and by returning dynamic responses; works with RSpec, Test::Unit and Cucumber and currently supports net/http and httpclient while planning curl support. Tests become library-independent HTTP stubbing so switching HTTP gems leaves behavior intact, and the gem can disable real network connections while still allowing selected hosts. Includes an expectation API like assert_requested and reports that it solves the presenter’s repeated breakage problems.
AI-written summary · about
chapters (4)
- 0:00Start
- 5:47I wanted a tool for stu HTTP requests tha
- 9:54Matching Request on Body and Heade
- 11:40Dynamic Response








