minitest
Installation
SKILL.md
Rails Minitest Expert
Write performant, maintainable, and non-brittle tests for Rails applications using Minitest and fixtures.
Philosophy
Core Principles:
- Test behavior, not implementation - Focus on WHAT code does, not HOW
- Fast feedback loops - Prefer unit tests over integration tests, fixtures over factories
- Tests as documentation - Test names should describe expected behavior
- Minimal test data - Create only what's necessary; 2 records == many records
- Non-brittle assertions - Test outcomes, not exact values that may change