
Rails Testing
A solid reference for Rails testing with RSpec that covers the basics through advanced patterns. You get 46 rules across model tests, request specs, system tests with Capybara, background job testing, and FactoryBot usage. The priority system is helpful: it pushes critical stuff like test data management and four-phase structure first, then moves into specifics like enum testing and page objects. Nice touch that it separates testing job enqueuing from execution, which trips people up constantly. The anti-pattern coverage (mystery guests, flaky tests, sleep in Capybara) addresses real pain points. If you're setting up a new Rails test suite or trying to standardize an existing one, this gives you sensible defaults without being dogmatic.
- skills.sh installs
- 301
- GitHub stars
- 222
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pproenca/dot-skills --skill rails-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Community Ruby on Rails Testing Best Practices
Comprehensive testing guide for Ruby on Rails applications, maintained by Community. Contains 46 rules across 8 categories, prioritized by impact to guide automated test generation, review, and refactoring.
When to Apply
Reference these guidelines when:
- Writing new RSpec specs for models, requests, system tests, or jobs
- Setting up FactoryBot factories with traits and sequences
- Writing Capybara system tests for user journeys
- Testing background jobs with Sidekiq or Active Job
- Reviewing test code for anti-patterns (mystery guests, flaky tests, slow specs)
- Optimizing test suite performance and CI pipeline speed
- Organizing test files, shared examples, and custom matchers
Rule Categories by Priority
Sponsors
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Testing & QA, Documentation, Code Review & Quality, Design & UI/UX
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Think301
- Ruby Refactor299
- Ios Xcode298
- Restful Hateoas298
- Rails Dev293
- Ios Ui Refactor291
- Ruby Optimise286
- Swift Optimise285
- Ios Testing281
- Swift Refactor281
- Dev Rfc279
- Swift Ui Architect273
- Ios Taste272
- Ios Storyboard270
- Rails Design System270
- Swift Data268
- Ios Chaos Monkey267
- Ios Navigation267
- Nginx C Module Perf260
- React Native Elements258
- Effect Ts257
- Bug Review256
- Nginx C Module Debug253
- Rails Application Ui Blocks251