rails-testing
Installation
SKILL.md
Rails Testing
Instructions
When helping with Rails testing:
-
Understand the test structure
- Check existing tests in
test/directory to understand project conventions - Look for test patterns in similar files (models, controllers, etc.)
- Respect the project's test organization and naming conventions
- Check existing tests in
-
Running tests
- Run all tests:
bin/rails test - Run specific file:
bin/rails test test/models/user_test.rb - Run specific test:
bin/rails test test/models/user_test.rb:5(line number) - Run with verbose output:
bin/rails test -v - Use
--fail-fastto stop on first failure:bin/rails test --fail-fast
- Run all tests: