Ruby on Rails Tuesday, February 27, 2018

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).

Cheers

No comments:

Post a Comment