spec: fix flaky

This commit is contained in:
simon lehericey 2022-05-04 17:29:49 +02:00
parent d33e7c8cab
commit 2d42b7d57d

View file

@ -2,6 +2,11 @@ describe DownloadableFileService do
let(:procedure) { create(:procedure, :published) }
let(:service) { ProcedureArchiveService.new(procedure) }
before do
FileUtils.mkdir_p('/tmp/test_archive_creation')
stub_const("DownloadableFileService::ARCHIVE_CREATION_DIR", '/tmp/test_archive_creation')
end
describe '#download_and_zip' do
let(:archive) { build(:archive, id: '3') }
let(:filename) { service.send(:zip_root_folder, archive) }