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
Merge remote-tracking branch 'origin/dev' into implementation/62981-show-and-edit-linked-phases-on-work-packages
ulferts42c14d177076
diff --cc spec/factories/project_phase_factory.rbindex f8c520eb48b,67447f92221..03735cf567c--- a/spec/factories/project_phase_factory.rb+++ b/spec/factories/project_phase_factory.rb@@@ -45,12 -46,9 +46,17 @@@ FactoryBot.define ddefinition { association(:project_phase_definition, :with_start_gate, :with_finish_gate) }end+ trait :active do+ active { true }+ end++ trait :inactive do+ active { false }+ end+++ # calculate duration taking weekdays and non working days into account+ trait :proper_duration do+ callback(:after_build, :after_stub, &:set_calculated_duration)+ endendend