Fixtures with Active Storage

Hey all,

Has anyone had any luck creating fixtures for Active Storage uploads? I wouldn’t mind creating uploads in integration tests, but because my User model has_one_attached :avatar and it always has to be present, all my integration tests fail due to non-existent user avatar in my header (.variant() called on nil).


For the record, I haven’t found a good solution with fixtures, so I made avatars optional and uploads creating dynamically inside integration tests.