~/talk

BDD and Acceptance Testing with RSpec & Capybara

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

Shows how Behavior‑Driven Development delivers value by testing from the outside in and then filling models, using RSpec for unit/spec design and Capybara (with Selenium/PhantomJS or rack‑test) to drive the browser. Builds a minimal Ruby cart then an actual Rails app with Devise, High Voltage and Bootstrap, demonstrates the red‑green‑refactor cycle, runs two model specs to green, scaffolds many pending acceptance specs, and verifies UI pieces like a dismissible flash and navigation links.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Practical BehaviorDriven Development
  3. 1:36Requirements
  4. 2:36Agenda
  5. 3:29Agile Manifesto
  6. 8:47Acceptance Testing Diagram
  7. 11:00Behavior Driven Development
  8. 14:22TDD Tutorial
  9. 14:43RSpec Introduction
  10. 15:13RSpec Example
  11. 16:36RSpec Matches
  12. 17:11RSpec Collections
  13. 17:22TDD
  14. 18:37TDD Zone
  15. 19:57Red Green Refactor
  16. 21:10Follow Along
  17. 23:52CarSpec
  18. 24:53Running the tests
  19. 25:59Creating an empty spec
  20. 27:06First realistic testing
  21. 28:48First failure
  22. 29:37Getting the words right
  23. 31:06Explicit and implicit failures
  24. 31:47Explicit and implicit tests
  25. 35:48Pureistic approach
  26. 37:57Refactoring
  27. 43:55RSpec Exercises
  28. 47:37Acceptance Tests
  29. 54:16Capybara
  30. 56:31Application
~/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.