~/talk

Applying RSpec Best Practices

Talkat Rubyfuza 2013 · 2013-02-01..02-03· [ruby, testing]
slides:none on file

Explains concrete RSpec practices: model specs use describe/subject/context with a Game of Life example, prefer unit tests over integration, avoid testing Rails internals, and treat specs as executable documentation. Recommends three RSpec settings: color, profile, documentation (profile shows the 10 slowest examples). Uses let for shared collaborators, favors the must vs should assertion style (mentions the mustard plugin), and emphasizes tests that enforce SOLID and Law of Demeter.

AI-written summary · about

  1. 0:00Principles of testing
  2. 2:47Structuring RSpec tests
  3. 5:18Assertive testing practices
  4. 7:46Configuration and tooling
  5. 9:38Advanced TDD strategies
  6. 12:52Questions and answers
~/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.