diff --git a/spec/lib/upload_creator_spec.rb b/spec/lib/upload_creator_spec.rb index 02861221a39..4238918225d 100644 --- a/spec/lib/upload_creator_spec.rb +++ b/spec/lib/upload_creator_spec.rb @@ -31,7 +31,10 @@ RSpec.describe UploadCreator do it 'should store the upload with the right extension' do expect do - UploadCreator.new(file, filename).create_for(user.id) + UploadCreator.new(file, filename, + force_optimize: true, + type: UploadCreator::TYPES_TO_CROP.first + ).create_for(user.id) end.to change { Upload.count }.by(1) upload = Upload.last