~/talk

Charity Workshop: Ruby and Rails Testing Techniques

Talkat Ruby Hoedown 2007 · 2007-08-24..08-25· [ruby, testing]
links:none on file
slides:none on file

Claims that Flex mock makes testing and design easier, recommends using mocking routinely for nontrivial unit tests, and shows a concrete example: dealer.draw must call deck.draw exactly should_receive .once so the expectation fails when draw isn’t invoked. Compares mocha and Flex mock, demos rpec style specs with unimplemented examples, and runs arov coverage reporting (example session shows 100% coverage on the toy code).

AI-written summary · about

  1. 0:00Start
  2. 25:52Benefit of Tdd
  3. 30:20Making a Rake File
  4. 33:53R-Spec
  5. 35:33Behavior Driven Design
  6. 38:43Spec Talk
  7. 39:32Described Method
~/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.