What problem does it solve?
Remove uncertainty and inconsistency when authoring RSpec tests for Rails applications by providing concrete patterns, structure, and examples so tests are readable, reliable, and easy to maintain across teams.
Core Features & Use Cases
- Opinionated best practices: recommends Arrange-Act-Assert structure, expect syntax, single-responsibility tests, and when to prefer build over create for factories.
- Decision guidance across test types: explains when to write model, controller, system, component, and service/integration specs and how to choose appropriate scopes and matchers.
- Practical examples and patterns: includes FactoryBot organization, Capybara system test tips, shared examples, and guidance from Better Specs and thoughtbot for real-world test suites.
- Use case: convert inconsistent project tests into a consistent suite that validates models, exercises controllers and views, and provides end-to-end system tests for core user flows.
Quick Start
Create or improve an RSpec spec for the Article model that validates title presence, verifies associations, and includes a published? example using the recommended patterns.