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

allow having duration in payload representer

ulferts44996d2ec37d
diff --git a/spec/lib/api/v3/work_packages/work_package_payload_representer_spec.rb b/spec/lib/api/v3/work_packages/work_package_payload_representer_spec.rb
index afacb57ddd0..f282b3dea1e 100644
--- a/spec/lib/api/v3/work_packages/work_package_payload_representer_spec.rb
+++ b/spec/lib/api/v3/work_packages/work_package_payload_representer_spec.rb
@@ -269,32 +269,6 @@ describe ::API::V3::WorkPackages::WorkPackagePayloadRepresenter do
end
end
end
-
- describe 'duration' do
- before do
- allow(OpenProject::FeatureDecisions)
- .to receive(:work_packages_duration_field_active?)
- .and_return(true)
- end
-
- it 'has no duration attribute' do
- # TODO: Remove this, once the duration feature is complete
- expect(subject).not_to have_json_path('duration')
- end
-
- context 'when duration feature flag disabled' do
- before do
- allow(OpenProject::FeatureDecisions)
- .to receive(:work_packages_duration_field_active?)
- .and_return(false)
- end
-
- it 'has no duration attribute' do
- # TODO: Remove this, once the duration feature is complete
- expect(subject).not_to have_json_path('duration')
- end
- end
- end
end
describe '_links' do