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
Make FactoryBot wp created_at and updated_at identical
Christophe Bliard7ef5c82f0c49
diff --git a/spec/factories/work_package_factory.rb b/spec/factories/work_package_factory.rbindex 82363b44f30..18fb56276ef 100644--- a/spec/factories/work_package_factory.rb+++ b/spec/factories/work_package_factory.rb@@ -32,6 +32,7 @@ FactoryBot.define docustom_values { nil }days { WorkPackages::Shared::Days.for(self) }journals { nil }+ now { Time.zone.now }endpriority@@ -40,8 +41,8 @@ FactoryBot.define dosequence(:subject) { |n| "WorkPackage No. #{n}" }description { |i| "Description for '#{i.subject}'" }author factory: :user- created_at { Time.zone.now }- updated_at { Time.zone.now }+ created_at { now }+ updated_at { now }start_date do# derive start date if due date and duration were providednext unless %i[due_date duration].all? { |field| __override_names__.include?(field) }