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

Parameterize `attachments_storage_path` based on `TEST_ENV_NUMBER`

Christophe Bliard4cdb76f884f7
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 3d6b257c39d..256da1afa36 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -93,5 +93,5 @@ RSpec.configure do |config|
config.include ActiveSupport::Testing::Assertions
config.include ActiveJob::TestHelper
- OpenProject::Configuration["attachments_storage_path"] = "tmp/files"
+ OpenProject::Configuration["attachments_storage_path"] = "tmp/files#{ENV.fetch('TEST_ENV_NUMBER', nil)}"
end