inertia-rails-testing

Installation
SKILL.md

Inertia Rails Testing

Testing patterns for Inertia responses with RSpec and Minitest.

For each controller action, verify:

  • Correct componentrender_component('users/index')
  • Expected propshave_props(users: satisfy { ... })
  • No leaked datahave_no_prop(:secret)
  • Flash messagesfollow_redirect! then have_flash(notice: '...')
  • Deferred propshave_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

Related skills
Installs
158
GitHub Stars
48
First Seen
Feb 13, 2026