What problem does it solve?
This Skill addresses the challenge of writing consistent, high-quality Ruby/RSpec tests that adhere to project conventions. It helps developers avoid common anti-patterns, ensuring maintainable and effective test suites.
Core Features & Use Cases
- Behavior-Driven Testing Guidance: Guides you to test observable outcomes and public interfaces, not internal implementation details.
- FactoryBot Best Practices: Enforces proper usage of FactoryBot with traits, optimizing test data creation.
- Structured Test Workflow: Provides a clear, step-by-step workflow for structuring new and existing RSpec files, promoting readability and consistency.
- Use Case: When you're adding a new feature to a Ruby on Rails application, use this Skill to generate a well-structured RSpec test file that adheres to your team's best practices, ensuring consistency and maintainability without manual effort.
Quick Start
Help me write RSpec tests for the User model, focusing on the authenticate method.