In a system spec in Rails I’m testing an avatar upload field using Capybara:
attach_file('user_avatar', File.absolute_path('spec/fixtures/files/logo.png')) click_on 'Save changes' expect(user.reload.avatar.metadata['filename']).to eq('logo.png')
The specs pass, but a warning is shown while running them:
SHRINE WARNING: Error occurred when attempting to extract image dimensions: #<FastImage::UnknownImageType: FastImage::UnknownImageType>
The warning is not that big of an issue, but I was wondering if I can get rid of it somehow. I’m going to have to test a lot more image uploads for this app, and it clutters the output.