Skip to content

Make fixture tests own their models - #117

Open
nertzy wants to merge 1 commit into
model-aware-fixture-generationfrom
ephemeral-fixture-test-ownership
Open

Make fixture tests own their models#117
nertzy wants to merge 1 commit into
model-aware-fixture-generationfrom
ephemeral-fixture-test-ownership

Conversation

@nertzy

@nertzy nertzy commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

The model-aware fixture foundation is now able to generate Rails-native metadata for ephemeral model tables, but the remaining ordinary test cases still rely on globally managed fixed schemas. That coupling makes test ownership and fixture cleanup less clear.

This migration moves each ordinary model-backed test case to an inline with_model schema owned by its Test::Unit class, including the integration, manifest, and serialization cases in the new test hierarchy. It keeps the intentional manual boundaries for raw SQL, autoload timing, alternate connection pools, schema errors, namespaced constants, subprocesses, and STI.

The legacy suite now covers both metadata-aware loading for ephemeral model tables and metadata-free loading for a conventional checked-in fixture. Shared fixed-schema support is removed after its final consumer migrates.

This is the dependent migration for #116.

@nertzy
nertzy force-pushed the ephemeral-fixture-test-ownership branch from e3fb8ad to 5d1b1ec Compare September 8, 2026 00:18
@nertzy
nertzy force-pushed the ephemeral-fixture-test-ownership branch from 5d1b1ec to 5390578 Compare September 8, 2026 00:44
@nertzy
nertzy marked this pull request as ready for review September 8, 2026 16:23
@nertzy
nertzy force-pushed the ephemeral-fixture-test-ownership branch 2 times, most recently from 1dd45e3 to 3906817 Compare September 8, 2026 20:35
@nertzy
nertzy force-pushed the ephemeral-fixture-test-ownership branch from 3906817 to 4a17885 Compare September 8, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant