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
Remove done_ratio from payload_representer as it's no longer writable
Aaron Contreras6b05265aa298
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 68a92575e64..ed71c552992 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@@ -126,35 +126,6 @@ RSpec.describe API::V3::WorkPackages::WorkPackagePayloadRepresenter doendend- describe 'percentage done' do- before do- allow(work_package)- .to receive(:leaf?)- .and_return(true)- end-- context 'when percentage done enabled' do- it { is_expected.to have_json_path('percentageDone') }- it { is_expected.to have_json_type(Integer).at_path('percentageDone') }-- it do- expect(subject).to be_json_eql(work_package.done_ratio.to_json).at_path('percentageDone')- end- end-- %w(disabled status).each do |setting|- context "when work package done ratio setting on #{setting}" do- before do- allow(Setting).to receive(:work_package_done_ratio).and_return(setting)- end-- it 'has no percentageDone attribute' do- expect(subject).not_to have_json_path('percentageDone')- end- end- end- end-describe 'startDate' dobefore doallow(work_package)