fix: add missing file content type in fixture blob creation

This commit is contained in:
Nicolas Cavigneaux 2023-03-15 15:22:53 +01:00 committed by Colin Darie
parent c1453c5f5c
commit faad8abaf6
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -2,7 +2,7 @@ describe ProcedureArchiveService do
let(:procedure) { build(:procedure) }
let(:archive) { create(:archive) }
let(:file) { Tempfile.new }
let(:fixture_blob) { ActiveStorage::Blob.create_before_direct_upload!(filename: File.basename(file.path), byte_size: file.size, checksum: 'osf') }
let(:fixture_blob) { ActiveStorage::Blob.create_before_direct_upload!(filename: File.basename(file.path), byte_size: file.size, checksum: 'osf', content_type: 'text/plain') }
let(:uploader) { ArchiveUploader.new(procedure: procedure, filename: archive.filename(procedure), filepath: file.path) }