I have just switched to using ActiveStorage on rails 5.1.4 and I am new to TDD and struggling to figure out how to test a model that has_one_attached :avatar
has_one_attached :avatar
In config/environments/test.rb
config.active_storage.service = :test
In your spec
it {expect(valid_user.avatar).to be_attached}