tester

Write RSpec tests for Rails models, controllers, and system flows.

2|Updated Jun 13, 2025
One-click install
npx skills add https://github.com/mattszein/pro-rails --skill tester-mattszein
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tester
Source: https://github.com/mattszein/pro-rails/tree/main/.claude/skills/tester
Command: npx skills add https://github.com/mattszein/pro-rails --skill tester-mattszein

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork from writing and maintaining Rails test coverage by giving you the project's exact RSpec patterns, helpers, and conventions for authentication, authorization, and test structure.

Core Features & Use Cases

  • Model coverage: Write validations, associations, scopes, state transitions, destroy protections, and broadcast specs that match the app's style.
  • Controller, policy, and interactor testing: Cover authenticated and unauthenticated paths, permission checks, workflow outcomes, and error handling with the right matchers and shared examples.
  • System and job scenarios: Validate end-to-end user flows in Capybara and idempotent background job behavior in a way that fits the repository's Docker-based workflow.
  • Use case: When a new Rails feature lands, use this Skill to generate the exact spec type, setup, and assertions needed so the test passes project review on the first try.

Quick Start

Ask for an RSpec test for the Rails feature you are adding, and follow the repository's existing conventions for spec type, authentication, authorization, factories, and Docker-based execution.

Frequently Asked Questions about tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write RSpec tests for Rails models and controllers that pass project review?

To write RSpec tests for Rails models and controllers, use the project's established spec types, FactoryBot factories, Shoulda-Matchers, authentication helpers, and ActionPolicy matchers to ensure your validations, associations, and authenticated paths match repository conventions.

How does Capybara with Cuprite handle system specs in a Docker-based Rails workflow?

Capybara with Cuprite handles system specs by validating end-to-end user flows within the repository's Docker-based testing workflow, ensuring browser interactions and background job behaviors are tested idempotently according to project conventions.

What is the best way to test authorization policies and interactors in a Rails application?

The best way to test authorization policies and interactors is to use ActionPolicy matchers and shared examples to cover permission checks, workflow outcomes, and error handling, ensuring both authenticated and unauthenticated paths are properly validated.

Do I need Docker to run Rails request specs and background job tests?

You need Docker to run Rails request specs and background job tests because the Skill's testing conventions are designed to fit the repository's Docker-based execution environment, validating idempotent background job behavior and system flows accurately.

Why should I use FactoryBot and Shoulda-Matchers when adding test coverage for a new Rails feature?

You should use FactoryBot and Shoulda-Matchers when adding test coverage for a new Rails feature to remove guesswork by applying the project's exact patterns for test data generation and model assertions, ensuring specs pass project review on the first try.

Can I test Rails broadcasts and state transitions using existing repository conventions?

You can test Rails broadcasts and state transitions by generating specs that align with the application's existing testing conventions, using the provided helpers and matchers to validate model state changes and broadcast triggers accurately.