~/talk

Weaving and seaming mocks

Talkat RubyConf Mini 2022 · 2022-11-15..11-17· [testing, ruby]
slides:none on file

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

  1. 0:00Testing styles and mocks
  2. 5:04About the speaker and TestProf
  3. 6:26Problem with mocks
  4. 8:10Classical vs mocking styles
  5. 10:40Mock verification history in RSpec
  6. 13:31Type checking mocks with RBS and Sorbet
  7. 18:05Generating type signatures
  8. 25:59Verifying mocks vs real behavior
  9. 30:38Mock verification limits and future
  10. 33:50Mocking alternatives
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.