Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure globals reset after Active Storage tests
This ensures `ActiveRecord::Base.strict_loading_by_default` and `ActiveStorage.track_variants` are reset to their original values even when an error (e.g. an assertion failure) is raised inside `with_strict_loading_by_default` and `without_variant_tracking` blocks.
- Loading branch information