rails-engine-testing
Installation
SKILL.md
Rails Engine Testing
Use this skill when the task is to create or improve test coverage for a Rails engine.
Prefer integration confidence over isolated test quantity. The main goal is to prove the engine behaves correctly inside a host app.
Quick Reference
| Spec Type | Purpose |
|---|---|
| Request | Proves mounted endpoints work; exercises real routing and controller |
| Routing | Verifies engine route expectations and mount behavior |
| Generator | Covers install commands, copied files, idempotency |
| Config | Verifies engine respects host configuration overrides |
| Reload-safety | Regression tests for decorators, patches, and to_prepare hooks |
HARD-GATE
EVERY engine MUST have a dummy app for testing.