pproenca avatar

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-code

Installs 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
1patricio0312rev avatarapi-mock-serverpatricio0312rev/skillsCreates mock API servers for testing and development with MSW, json-server, or custom handlers. Use when users request "API mocking", "mock server", "MSW setup"297skills.sh installs
2tech-leads-club avatarplaywright-skilltech-leads-club/agent-skillsComplete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check respon297skills.sh installs
3desplega-ai avatarqa-usedesplega-ai/qa-useE2E testing and browser automation with qa-use CLI. Use when the user needs to run tests, verify features, automate browser interactions, or debug test failures295skills.sh installs
4gohypergiant avataraccelint-react-testinggohypergiant/agent-skillsUse when writing, reviewing, or refactoring React component tests with Testing Library. Load when you see render(), screen, fireEvent, userEvent, waitFor, or *.282skills.sh installs
5pproenca avatarios-testingpproenca/dot-skillsTesting practices for iOS 26 / Swift 6.2 clinic modular MVVM-C applications. Covers unit/UI/snapshot testing, protocol-based mocks, async actor isolation, and d281skills.sh installs
6glebis avatartddglebis/claude-skillsThis skill should be used when the user wants to implement features or fix bugs using test-driven development. Enforces the RED-GREEN-REFACTOR cycle with vertic260skills.sh installs