~/talk

BDD with Shoulda

Talkat MountainWest RubyConf 2008 · 2008-03-28..03-29· [testing, ruby]
links:none on file
slides:none on file

Shoulda is a tiny Test::Unit companion that adds nested contexts and one-line should macros and Rails-aware ActiveRecord and controller helpers as a gem or plugin; its should_be_restful generates 50–200 tests for standard CRUD and formats; implementation is refactored to avoid Test::Unit namespace pollution and is configurable; practical notes include using factories instead of brittle fixtures, judicious mocking to avoid overmocking, and auto-test style randomized runs to catch brittle order-dependent tests.

AI-written summary · about

  1. 0:00Start
  2. 0:28Expectations
  3. 4:11contexts
  4. 18:25riting macros
  5. 36:36Brittle tests
~/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.