Тестирование Inertia Rails
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
Что делает навык
Тестирование ответов Inertia Rails с помощью RSpec и Minitest: проверка компонентов, соответствие props, проверка flash, deferred props и хелперы для partial reload. Используется при написании controller specs, request specs или интеграционных тестов для страниц Inertia. ВСЕГДА используйте матчеры (render_component, have_props, have_flash), а НЕ прямой доступ (inertia.component, inertia.props). КРИТИЧЕСКИ ВАЖНО: после POST/PATCH/DELETE
Как подключить
SKILL.md к навыкам ассистентаНавык — папка с файлом SKILL.md (описание + инструкции) и опциональными скриптами. Ассистент (Claude, Claude Code и совместимые) подхватывает его по описанию и следует шагам.