灵感菇

AI 技能的自然生态,你的一句话,蔓延出无限连接。

返回搜索

软件工程 / 诊断修复

inertia-rails-testing

inertia-rails-testing

安装量 160GitHub Stars 50更新时间 2026年5月16日

描述

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'.

安全审计

使用前的风险提示

未审计

规则审计

未审计
更新 1年1月1日

智能审计

未审计
更新 1年1月1日
uitestinginertiarailsresponsesrspecandminitestcomponentassertionspropmatching