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
Fix failing unit test
Christophe Bliard2f17a9cda190
diff --git a/spec/services/work_packages/update_service_integration_spec.rb b/spec/services/work_packages/update_service_integration_spec.rbindex 50ebcd1a889..19aef6d69c0 100644--- a/spec/services/work_packages/update_service_integration_spec.rb+++ b/spec/services/work_packages/update_service_integration_spec.rb@@ -1539,7 +1539,6 @@ RSpec.describe WorkPackages::UpdateService, "integration", type: :model doendit "removes the parent successfully and reschedules the parent" do- expect(parent.valid?(:saving_custom_fields)).to be(false)# Unload the `ancestor_hierarchies` association so that we don't validate the associatied# records. `closure_tree`'s behaviour is to reload the associations after save, even if they# weren't loaded, see: https://github.com/ClosureTree/closure_tree/blob/@@ -1565,6 +1564,8 @@ RSpec.describe WorkPackages::UpdateService, "integration", type: :model dowork_package.association(:self_and_ancestors).reset+ expect(parent.valid?(:saving_custom_fields)).to be(false)+expect(subject).to be_successexpect(work_package.reload.parent).to be_nil