Webmock unmocked
summary
webmock is a Ruby gem that stops HTTP calls by returning declared fake responses and separately verifies which requests ran; it reports stubbing instructions on unexpected real requests. It supports timeouts, basic auth, replaying curl responses, and powers VCR. The project shows concrete scale: ~250 million downloads, ~4,000 GitHub stars, ~260 contributors and ~8,000 dependent gems. Implementation uses an adapter per client that monkeypatches client classes via constant replacement, global registries, and a clear stubbing and verification DSL.
AI-written summary · about
chapters (8)
- 0:00Introduction and background
- 2:33What is WebMock and its core features
- 8:26Why mock HTTP requests
- 11:27Advantages of WebMock over custom solutions
- 16:04How WebMock works internally
- 28:33The story behind WebMock
- 31:45Thanking the Ruby community
- 32:09Q&A session








