BDD and Acceptance Testing with RSpec & Capybara
summary
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
chapters (30)
- 0:00Introduction
- 0:54Practical BehaviorDriven Development
- 1:36Requirements
- 2:36Agenda
- 3:29Agile Manifesto
- 8:47Acceptance Testing Diagram
- 11:00Behavior Driven Development
- 14:22TDD Tutorial
- 14:43RSpec Introduction
- 15:13RSpec Example
- 16:36RSpec Matches
- 17:11RSpec Collections
- 17:22TDD
- 18:37TDD Zone
- 19:57Red Green Refactor
- 21:10Follow Along
- 23:52CarSpec
- 24:53Running the tests
- 25:59Creating an empty spec
- 27:06First realistic testing
- 28:48First failure
- 29:37Getting the words right
- 31:06Explicit and implicit failures
- 31:47Explicit and implicit tests
- 35:48Pureistic approach
- 37:57Refactoring
- 43:55RSpec Exercises
- 47:37Acceptance Tests
- 54:16Capybara
- 56:31Application
related talks
01h 00mBehaviour Driven Development with RSpec
16mBlack Box Testing with RSpec and Capybara
49mFront End Testing Frontier
52mStory Driven Development: The Next Generation of Rails Functional Testing
01h 01mAcceptance Tests, BDD & GO
02h 52mCode Immersion: Building a Rails 3.0 app using Cucumber and Rspec
21mWriting Declarative, Maintainable Integration Tests Using Page Objects
27mUnderstanding Rails test types in RSpec
