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 spec/lib/acts/journalized/differ/association_spec.rb
Ivan Kuchin3c3c4f15cc35
diff --git a/spec/lib/acts/journalized/differ/association_spec.rb b/spec/lib/acts/journalized/differ/association_spec.rbindex cb1a664ff91..ff103530df9 100644--- a/spec/lib/acts/journalized/differ/association_spec.rb+++ b/spec/lib/acts/journalized/differ/association_spec.rb@@ -130,32 +130,32 @@ RSpec.describe Acts::Journalized::Differ::Association dodescribe "#multiple_attributes_changes" dolet(:original) do- build(:journal, project_life_cycle_step_journals: [- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 1, active: false),- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 3, active: true),- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 4, active: true,- start_date: Date.new(2024, 1, 16),- end_date: Date.new(2024, 1, 17))+ build(:journal, project_phase_journals: [+ build_stubbed(:project_phase_journal, phase_id: 1, active: false),+ build_stubbed(:project_phase_journal, phase_id: 3, active: true),+ build_stubbed(:project_phase_journal, phase_id: 4, active: true,+ start_date: Date.new(2024, 1, 16),+ end_date: Date.new(2024, 1, 17))])endlet(:changed) do- build(:journal, project_life_cycle_step_journals: [- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 1, active: true),- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 2, active: true),- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 3, active: false,- start_date: Date.new(2024, 1, 17),- end_date: Date.new(2024, 1, 18)),- build_stubbed(:project_life_cycle_step_journal, life_cycle_step_id: 4, active: true,- start_date: Date.new(2024, 1, 17),- end_date: Date.new(2024, 1, 18))+ build(:journal, project_phase_journals: [+ build_stubbed(:project_phase_journal, phase_id: 1, active: true),+ build_stubbed(:project_phase_journal, phase_id: 2, active: true),+ build_stubbed(:project_phase_journal, phase_id: 3, active: false,+ start_date: Date.new(2024, 1, 17),+ end_date: Date.new(2024, 1, 18)),+ build_stubbed(:project_phase_journal, phase_id: 4, active: true,+ start_date: Date.new(2024, 1, 17),+ end_date: Date.new(2024, 1, 18))])endlet(:instance) dodescribed_class.new(original, changed,- association: :project_life_cycle_step_journals,- id_attribute: :life_cycle_step_id,+ association: :project_phase_journals,+ id_attribute: :phase_id,multiple_values:)end