Teaching RSpec to Play nice with Rails
summary
RSpec Rails integration shows which tests fail and why: real bugs get reduced to a concrete commit, a failing reproduction app, or an interaction with the extracted rails-controller-testing gem that breaks view specs and path helpers. Debugging uses git bisect across thousands of revisions, targeted Rails patches, long explanatory commit messages, and PRs that change initialization order. Several fixes land in Rails itself; Rails 5.1 system test integration remains unimplemented and RSpec 3.6.0 is the compatibility target.
AI-written summary · about
chapters (8)
- 0:00Introduction and recovery
- 2:33RSpec and Rails 5.1
- 4:25RSpec architecture
- 6:20RSpec rails integration
- 8:21Fixing controller tests
- 13:18Debugging Rails bugs
- 19:23Lazy initialization issues
- 23:05Open source maintenance
related talks
27mUnderstanding Rails test types in RSpec
31mQuick and easy browser testing using RSpec and Rails 5.1
26mDebugging Rails Itself
26mCleaning house with RSpec Rails 4
31mSecrets of Testing Rails 5 Apps
20mApplying RSpec Best Practices
33m"RSpec no longer works with ActiveRecord"
43mSecrets of Testing Rails 5 apps
