~/talk

Yay! Mocks!

Talkat Aloha RubyConf 2012 · 2012-10-08..10-09· [testing]
slides:none on file

Argues that mocks and test doubles are tools to drive design not just brittle verification, shows RSpec-style doubling and a Rails app built for Code Retreats to demonstrate pain points: controller tests brittle from passing a model hash, doubles returning doubles, and validation noise forcing DB hits. Recommends inserting a scope for todays, pushing logic into services, replacing layered leaks with a presenter, and changing the design when tests are hard to write.

AI-written summary · about

  1. 0:00Start
  2. 8:32Easier to change
  3. 11:30is about messages
  4. 12:30is about interactions
  5. 12:56is about services
  6. 14:31Development
  7. 22:13David Parnas 1972
  8. 35:143. No Duplication (DRY)
~/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.