Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix backup_job_spec running on osx

Ivan Kuchinbcb6b90abde3
diff --git a/spec/workers/backup_job_spec.rb b/spec/workers/backup_job_spec.rb
index 1ceacd1cdb3..c843b5f0f8f 100644
--- a/spec/workers/backup_job_spec.rb
+++ b/spec/workers/backup_job_spec.rb
@@ -191,7 +191,7 @@ RSpec.describe BackupJob, type: :model do
}
}
) do
- let(:dummy_path) { "/tmp/op_uploaded_files/1639754082-3468-0002-0911/file.ext" }
+ let(:dummy_path) { "#{LocalFileUploader.cache_dir}/1639754082-3468-0002-0911/file.ext" }
before do
FileUtils.mkdir_p Pathname(dummy_path).parent.to_s