rails:test
CommunityCreate robust Rails RSpec tests in seconds.
Authorfabn
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers often struggle to write or scaffold comprehensive RSpec tests for Rails applications, dealing with conventions, factories, and external stubs manually.
Core Features & Use Cases
- Detects the project's testing setup (RSpec, Minitest, FactoryBot, VCR, shoulda-matchers) by inspecting the Gemfile and support files.
- Determines appropriate spec locations for models, services, requests, jobs, policies, etc., and creates or updates spec files following existing project style.
- Generates or updates FactoryBot factories with sequences, traits, and associations when missing.
- Handles external HTTP stubbing with VCR cassettes or WebMock, and includes Sidekiq, ActionMailer, and other job/email helpers.
- Provides error handling for missing test frameworks, schema mismatches, and flaky timeādependent tests.
Quick Start
Generate a complete RSpec model spec for the User model, including factories and validations.
Dependency Matrix
Required Modules
None requiredComponents
references
š» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rails:test Download link: https://github.com/fabn/claude-plugins/archive/main.zip#rails-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.