rails-inertia-testing

Installation
SKILL.md

Inertia Rails Testing

Testing patterns for Inertia responses with RSpec and Minitest.

For each controller action, verify:

  • Correct component → render_component('users/index')
  • Expected props → have_props(users: satisfy { ... })
  • No leaked data → have_no_prop(:secret)
  • Flash messages → follow_redirect! then have_flash(notice: '...')
  • Deferred props → have_deferred_props(:analytics)

Common mistake: Forgetting follow_redirect! after PRG — without it, you're asserting against the 302 redirect response, not the Inertia page that follows.

Setup

Installs
1
GitHub Stars
2
First Seen
Jun 3, 2026
rails-inertia-testing — shreyas-makes/agent-skills