Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Rails testing best practices (RSpec) v1.0.0

Use this resource to write or clean up a Rails test suite with RSpec

New

  • 532 downloads
  • 209 likes
  • 181 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install rails-rspec-testing-practices

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies 46 rules ranked by impact: test design, FactoryBot test data, request and system tests, and job and mailer tests. You get a suite that is clearer and less brittle.

Mostly picked by

Updated November 2, 2026

Card for the “Rails testing best practices (RSpec)” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rules by category, from design to maintenance
  • references/data-build-over-create.md: build instead of create; references/async-test-job-perform.md: job tests

Good fit for

  • Your RSpec suite is slow because records are created everywhere
  • Your Sidekiq or Active Job tests check nothing specific

Not for

    Tags

    • rails
    • rspec
    • tests
    • factorybot

    About

    You say

    “Rewrite the specs for this Rails model with FactoryBot and remove unnecessary data.”

    Card for the “Rails testing best practices (RSpec)” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or clean up a Rails test suite with RSpec
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md0.2 KB
    • assets/templates/_template.md0.6 KB
    • LICENSE1.1 KB
    • metadata.json1.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md2.4 KB
    • references/async-separate-enqueue-from-perform.md3 KB
    • references/async-test-after-commit.md3 KB
    • references/async-test-job-perform.md2.3 KB
    • references/async-test-mailer-delivery.md3.1 KB
    • references/async-use-fake-mode-default.md2.7 KB
    • references/data-avoid-fixture-coupling.md2.9 KB
    • references/data-build-over-create.md2.8 KB
    • references/data-factory-traits.md2.3 KB
    • references/data-minimal-attributes.md2.1 KB
    • references/data-sequence-unique-values.md2.3 KB
    • references/data-transient-attributes.md2.8 KB
    • references/design-avoid-conditional-logic.md2.3 KB
    • references/design-avoid-mystery-guest.md2.5 KB
    • references/design-behavior-over-implementation.md2.5 KB
    • references/design-descriptive-test-names.md2.4 KB
    • references/design-explicit-subject.md2.4 KB
    • references/design-four-phase-test.md2.6 KB
    • references/design-one-assertion-per-test.md2.8 KB
    • references/model-avoid-testing-framework.md3 KB
    • references/model-test-associations.md2.4 KB
    • references/model-test-callbacks-sparingly.md2.8 KB
    • references/model-test-custom-methods.md3.5 KB
    • references/model-test-enums.md3.5 KB
    • references/model-test-scopes.md2.8 KB
    • references/model-test-validations.md2.9 KB
    • references/org-avoid-deep-nesting.md3.3 KB
    • references/org-custom-matchers.md3.8 KB
    • references/org-file-structure-mirrors-app.md3.3 KB
    • references/org-shared-examples-sparingly.md3.7 KB
    • references/perf-avoid-before-all-mutation.md3.1 KB
    • references/perf-database-strategy.md2.2 KB
    • references/perf-parallel-tests.md2.2 KB
    • references/perf-profile-slow-specs.md3.3 KB
    • references/perf-quarantine-flaky-tests.md2.7 KB
    • references/request-json-response-structure.md4.1 KB
    • references/request-over-controller-specs.md2.4 KB
    • references/request-test-authentication.md3 KB
    • references/request-test-authorization.md3.8 KB
    • references/request-test-params-validation.md4 KB
    • references/request-test-response-status.md3.3 KB
    • references/system-avoid-sleep.md2.7 KB
    • references/system-database-state.md2.5 KB
    • references/system-page-objects.md2.7 KB
    • references/system-screenshot-on-failure.md2.7 KB
    • references/system-test-critical-paths.md3.2 KB
    • references/system-use-accessible-selectors.md2.1 KB
    • SKILL.md8.4 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.curated/rails-testing
    Licence
    MIT

    Notice

    « rails-testing » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.