~/talk

TDD Workshop: Outward-in Development, Unit Tests, and Fixture Data

Talkat RailsConf 2013 · 2013-04-29..05-02· [testing, ruby-on-rails]
links:none on file
slides:none on file

Live coding shows outward‑in TDD driving a to‑do feature: an RSpec+Capybara feature spec fails, test forces a new completions controller, nested route, migration adding a completed_at timestamp, and a link that posts to mark tasks complete; tests pass green, helpers extract page actions, duplication gets refactored, commits are squashed and pushed, and thoughtbot tools like RSPEC+Capybara and thoughtbot gems (FactoryGirl Shoulda Matchers mentioned) actually guide design and work.

AI-written summary · about

  1. 0:00Intro
  2. 1:23Who are we
  3. 12:32Task Completion
  4. 13:09Task Naming
  5. 13:45Capybara DSL
  6. 17:32RSpec
  7. 19:28Let your errors drive what youre doing
  8. 21:19Think about the users flow upfront
  9. 22:53Task completions path
  10. 26:55Missing controller
  11. 31:32Completed at
  12. 35:23Fixed error
  13. 36:10Inspect spec features
  14. 38:16Commit history
  15. 42:53Integration tests
  16. 45:32Tests are still code
  17. 47:11Completing a task
  18. 50:36Push to master
~/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.