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
Correctly create work package with project reference
Oliver Günther03468355223a
diff --git a/spec/services/principals/replace_references_service_call_integration_spec.rb b/spec/services/principals/replace_references_service_call_integration_spec.rbindex 21ce3d8ba7d..595018e2443 100644--- a/spec/services/principals/replace_references_service_call_integration_spec.rb+++ b/spec/services/principals/replace_references_service_call_integration_spec.rb@@ -299,6 +299,11 @@ describe Principals::ReplaceReferencesService, '#call', type: :model doendcontext 'with WorkPackage' do+ shared_let(:project) { create :project }+ let(:attributes) do+ { project_id: project.id }+ end+it_behaves_like 'rewritten record',:work_package,:assigned_to_id@@ -311,8 +316,11 @@ describe Principals::ReplaceReferencesService, '#call', type: :model do:journal_work_package_journal,:assigned_to_id dolet(:attributes) do- # ignore_non_working_days is non nullable. This part is not related to the test.- { ignore_non_working_days: false }+ {+ # ignore_non_working_days is non nullable. This part is not related to the test.+ ignore_non_working_days: false,+ project_id: project.id+ }endend@@ -320,8 +328,11 @@ describe Principals::ReplaceReferencesService, '#call', type: :model do:journal_work_package_journal,:responsible_id dolet(:attributes) do- # ignore_non_working_days is non nullable. This part is not related to the test.- { ignore_non_working_days: false }+ {+ # ignore_non_working_days is non nullable. This part is not related to the test.+ ignore_non_working_days: false,+ project_id: project.id+ }endendend