Understanding Rails test types in RSpec
summary
Walks through Rails + RSpec live coding that uses outside-in testing, writing a failing feature/controller/model specs trio against a to‑do app, creates completed and incomplete todos, implements a controller instance variable and a model scope, and runs the suite until everything is green. Demonstrates the actual assertions and helpers used to drive a fake browser and controller assigns, shows the refactor into a Todo.complete_todos method, and proves the change works end to end.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:35Feel free to ask questions
- 5:07Rails makes Testing is hard
- 5:39Rails Test Types
- 5:49Model Controller Feature
- 26:06This is not my first time in Atlanta
- 26:28IT TASTES LIKE SUGAR AND THE APOCALYPSE
related talks
28mTeaching RSpec to Play nice with Rails
54mTDD Workshop: Outward-in Development, Unit Tests, and Fixture Data
52mStory Driven Development: The Next Generation of Rails Functional Testing
01h 19mBDD and Acceptance Testing with RSpec & Capybara
20mApplying RSpec Best Practices
39mStop Testing, Start Storytelling
31mSecrets of Testing Rails 5 Apps
35mFrom RSpec to Jest: JavaScript testing for Rails devs
