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 test: initial work package was inconsistent

Christophe Bliardda1b482fcac3
diff --git a/spec/workers/copy_project_job_spec.rb b/spec/workers/copy_project_job_spec.rb
index 78ee6a18bd6..2d5fad3e4a8 100644
--- a/spec/workers/copy_project_job_spec.rb
+++ b/spec/workers/copy_project_job_spec.rb
@@ -178,9 +178,9 @@ RSpec.describe CopyProjectJob, type: :model, with_good_job_batches: [CopyProject
let(:params) { { name: "Copy", identifier: "copy" } }
let_work_packages(<<~TABLE)
- hierarchy | work | start date | end date
- parent | 1h | 2024-01-23 | 2024-01-26
- child | 3h | 2024-01-23 | 2024-01-26
+ hierarchy | work | remaining work | start date | end date
+ parent | 1h | 0h | 2024-01-23 | 2024-01-26
+ child | 3h | 1.5h | 2024-01-23 | 2024-01-26
TABLE
before do