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

Re-work expectations on work package create service spec file

Aaron Contreras5ffcfd304d52
diff --git a/spec/services/work_packages/create_service_integration_spec.rb b/spec/services/work_packages/create_service_integration_spec.rb
index f09e7f740d9..4f1d3c09aeb 100644
--- a/spec/services/work_packages/create_service_integration_spec.rb
+++ b/spec/services/work_packages/create_service_integration_spec.rb
@@ -119,7 +119,8 @@ RSpec.describe WorkPackages::CreateService, 'integration', type: :model do
let(:attributes) do
{ subject: 'blubs',
project:,
- done_ratio: 50,
+ estimated_hours: 10.0,
+ remaining_hours: 5.0,
parent:,
start_date: Date.current,
due_date: Date.current + 3.days }
@@ -155,7 +156,7 @@ RSpec.describe WorkPackages::CreateService, 'integration', type: :model do
# parent updated
parent.reload
expect(parent.derived_done_ratio)
- .to eql attributes[:done_ratio]
+ .to eq 50
expect(parent.start_date)
.to eql attributes[:start_date]
expect(parent.due_date)