~/talk

WebMock Unmocked

Talkat EuRuKo 2024 · 2024-09-11..09-13· [ruby, testing]
slides:none on file

WebMock is a Ruby library born in a one‑day 2009 hackathon that now has 270 million+ downloads and ~4,000 GitHub stars and 260+ contributors, designed to stub and verify HTTP with a client‑agnostic DSL. It prevents real HTTP by default, supports all popular Ruby HTTP clients and testing frameworks, records responses with curl, runs callbacks, and implements a stub‑execute‑verify paradigm. Internally it uses subclass‑and‑constant‑replacement monkey patching to build request signatures, match stubs, and either return fake responses or allow/raise for real requests.

AI-written summary · about

  1. 0:00WebMock introduction
  2. 1:34What WebMock is
  3. 6:20Mocking HTTP benefits
  4. 9:30WebMock vs alternatives
  5. 12:45WebMock internals
  6. 20:46Monkey patching approach
  7. 22:10Community role
~/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.