Loading...
Loading...
Writes comprehensive RSpec tests for Rails applications. Use when writing model specs, request specs, system specs, job specs, mailer specs, channel specs, or storage specs. Triggers on "write tests for", "add specs to", "test the User model", "create request specs", "write RSpec", "add test coverage".
npx skill4agent add aviflombaum/claude-code-in-avinyc write-testusers(:admin)create(:user)--fail-fastexpect().toshouldspec/fixtures/*.yml--fail-fastbundle exec rspec <spec_file> --fail-fastWhat am I testing?
├── Data & Business Logic → Model specs → @./patterns/model-specs.md
├── HTTP & Controllers → Request specs → @./patterns/request-specs.md
├── User Interface → System specs → @./patterns/system-specs.md
├── Background Processing → Job specs → @./patterns/job-specs.md
├── Email → Mailer specs → @./patterns/mailer-specs.md
├── File Uploads → Storage specs → @./patterns/storage-specs.md
├── Real-time Features → Channel specs → @./patterns/channel-specs.md
└── External Services → Use isolation → @./patterns/isolation.md| Type | Location | Use For |
|---|---|---|
| Model | | Validations, scopes, methods, callbacks |
| Request | | HTTP routing, auth, status codes, redirects |
| System | | Full user flows, UI interactions |
| Job | | Background job logic, queuing, retries |
| Mailer | | Email headers, body, attachments |
| Channel | | WebSocket subscriptions, broadcasts |
instance_doubleusers(:alice)recipes(:published)spec/support/bundle exec rspec <file> --fail-fast