fix: add missing file content type in fixture blob creation
This commit is contained in:
parent
c1453c5f5c
commit
faad8abaf6
1 changed files with 1 additions and 1 deletions
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue