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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
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.rbindex 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 doendendend-- 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- endenddescribe '_links' do