~/talk

TDD on the Shoulders of Giants

Talkat RubyConf Mini 2022 · 2022-11-15..11-17· [testing]
slides:none on file

Argues that London-style TDD’s concrete practices translate to Ruby by using RSpec doubles and custom matchers, Ruby 3.2 data classes for value objects, and FactoryBot for complex test fixtures. Demonstrates a shipped example: a shipment notifier wired into a Ship class with expectations moved out of before blocks so tests follow arrange act assert. Claims the rule “never add functionality without a failing test” improves design, warns excessive global stubbing makes suites brittle, and shows these techniques keep tests fast, focused, and more maintainable.

AI-written summary · about

  1. 0:00Introduction
  2. 2:28TDD styles compared
  3. 7:06Core TDD rules
  4. 9:13Mocking in Ruby vs Java
  5. 11:36Object composition
  6. 14:06Arrange-Act-Assert
  7. 16:35Value objects
  8. 20:46Legacy Ruby testing
  9. 22:54Learning from test failures
  10. 26:03Summary
~/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.