~/talk

TDD with WebMock

Talkat Ruby Manor 2: Manor Harder · on Saturday, 2009-12-12· [testing, ruby]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 5:47I wanted a tool for stu HTTP requests tha
  3. 9:54Matching Request on Body and Heade
  4. 11:40Dynamic Response
~/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.