Setup & Installation
What This Skill Does
Generates RSpec test files for Ruby projects, including describe/context/it block structure, matchers, let/before hooks, and mock/stub setups. Triggers when you reference RSpec syntax like expect().to or describe do.
RSpec's matcher API, hook ordering, and mock syntax require constant reference-checking — this skill produces idiomatic test structure without the lookup trips.
When to use it
- Writing spec files for a new Ruby class from scratch
- Adding context blocks and edge case coverage to existing specs
- Setting up mocks and stubs for service objects with dependencies
- Scaffolding shared examples for models with common validation patterns
- Converting old should-syntax specs to modern expect style