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

have a default value in the work_package_journal data factory

ulferts431394da23c1
diff --git a/spec/factories/journal/work_package_journal_factory.rb b/spec/factories/journal/work_package_journal_factory.rb
index c161f64d298..04f807d71f0 100644
--- a/spec/factories/journal/work_package_journal_factory.rb
+++ b/spec/factories/journal/work_package_journal_factory.rb
@@ -28,5 +28,6 @@
FactoryBot.define do
factory :journal_work_package_journal, class: 'Journal::WorkPackageJournal' do
+ ignore_non_working_days { false }
end
end
diff --git a/spec/services/principals/replace_references_service_call_integration_spec.rb b/spec/services/principals/replace_references_service_call_integration_spec.rb
index c678019fd72..21ce3d8ba7d 100644
--- a/spec/services/principals/replace_references_service_call_integration_spec.rb
+++ b/spec/services/principals/replace_references_service_call_integration_spec.rb
@@ -311,7 +311,8 @@ describe Principals::ReplaceReferencesService, '#call', type: :model do
:journal_work_package_journal,
:assigned_to_id do
let(:attributes) do
- {}
+ # ignore_non_working_days is non nullable. This part is not related to the test.
+ { ignore_non_working_days: false }
end
end
@@ -319,7 +320,8 @@ describe Principals::ReplaceReferencesService, '#call', type: :model do
:journal_work_package_journal,
:responsible_id do
let(:attributes) do
- {}
+ # ignore_non_working_days is non nullable. This part is not related to the test.
+ { ignore_non_working_days: false }
end
end
end