Skill / SKILL.md

Inertia Rails Testing

inertia-rails/skills

Testing Inertia Rails responses with RSpec and Minitest: component assertions, prop matching, flash verification, deferred props, and partial reload helpers. Use when writing controller specs, request specs, or integration tests for Inertia pages. ALWAYS use matchers (render_component, have_props, have_flash), NOT direct access (inertia.component, inertia.props). CRITICAL: after POST/PATCH/DELETE with redirect, MUST call follow_redirect! before asserting flash or props — without it you're asserting against the 302, not the Inertia page. Setup: require 'inertia_rails/rspec'.
3 views 72 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Testing Inertia Rails responses with RSpec and Minitest: component assertions, prop matching, flash verification, deferred props, and partial reload helpers. Use when writing controller specs, request specs, or integration tests for Inertia pages. ALWAYS use matchers (render_component, have_props, have_flash), NOT direct access (inertia.component, inertia.props). CRITICAL: after POST/PATCH/DELETE with redirect, MUST call follow_redirect! before asserting flash or props — without it you're asserting against the 302, not the Inertia page. Setup: require 'inertia_rails/rspec'.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/inertia-rails/skills' skill-source

Use the complete skill-source/skills/inertia-rails-testing directory with your client’s skill installer.

  • skills/inertia-rails-testing

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/inertia-rails-testing

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
ffe725e4a095f19c5e5c8e95935a4fe22c8e12c28aee8d33585fc671229842c6
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills