inertia-rails-testing
Inertia Rails Testing
Comprehensive guide to testing Inertia Rails applications with RSpec and Minitest.
Testing Approaches
- Endpoint tests - Verify server-side Inertia responses
- Client-side unit tests - Test components with Vitest/Jest
- End-to-end tests - Full browser testing with Capybara
RSpec Setup
Add to spec/rails_helper.rb:
require 'inertia_rails/rspec'
RSpec Matchers Reference
More from cole-robertson/inertia-rails-skills
inertia-rails-best-practices
Comprehensive best practices for Inertia Rails development. Use when writing, reviewing, or refactoring Inertia.js Rails applications with React, Vue, or Svelte frontends. Covers server-side setup, props management, forms, navigation, performance, security, and testing patterns.
71inertia-rails-performance
Optimize Inertia Rails application performance. Use when implementing code splitting, prefetching, deferred props, infinite scrolling, polling, or other performance optimizations.
57inertia-rails-auth
Implement authentication and authorization in Inertia Rails applications. Use when setting up login, sessions, permissions, and access control with Devise, has_secure_password, or other auth solutions.
55inertia-rails-forms
Build forms in Inertia Rails applications with proper validation, file uploads, and error handling. Use when implementing forms, handling validation errors, or working with file uploads in Inertia.js with Rails.
55inertia-rails-cookbook
Recipes and patterns for common Inertia Rails use cases. Includes modal dialogs, shadcn/ui integration, search with filters, wizard flows, and other advanced patterns.
55inertia-rails-ssr
Set up Server-Side Rendering (SSR) for Inertia Rails applications. Use when you need SEO optimization, faster initial page loads, or support for users with JavaScript disabled.
51