Make fixture tests own their models - #117
Open
nertzy wants to merge 1 commit into
Open
Conversation
nertzy
force-pushed
the
ephemeral-fixture-test-ownership
branch
from
September 8, 2026 00:18
e3fb8ad to
5d1b1ec
Compare
nertzy
force-pushed
the
ephemeral-fixture-test-ownership
branch
from
September 8, 2026 00:44
5d1b1ec to
5390578
Compare
nertzy
marked this pull request as ready for review
September 8, 2026 16:23
nertzy
force-pushed
the
ephemeral-fixture-test-ownership
branch
2 times, most recently
from
September 8, 2026 20:35
1dd45e3 to
3906817
Compare
nertzy
force-pushed
the
ephemeral-fixture-test-ownership
branch
from
September 8, 2026 20:51
3906817 to
4a17885
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_modelschema 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.