Weaving and seaming mocks
summary
Shows how mocked objects diverge from real ones even with 100% coverage, demonstrates a prototype that intercepts real calls with TracePoint, generates RBS/Sorbet signatures from test-run call traces, and extends RSpec verified doubles into a type double that fails when signatures or argument/return contracts mismatch. Introduces a mock context / fixtureama workflow to collect only mocked targets, builds verification patterns from real traces, and reports that the proof‑of‑concept catches false positives that plain doubles miss.
AI-written summary · about
chapters (10)
- 0:00Testing styles and mocks
- 5:04About the speaker and TestProf
- 6:26Problem with mocks
- 8:10Classical vs mocking styles
- 10:40Mock verification history in RSpec
- 13:31Type checking mocks with RBS and Sorbet
- 18:05Generating type signatures
- 25:59Verifying mocks vs real behavior
- 30:38Mock verification limits and future
- 33:50Mocking alternatives








