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
add spec for multiple_attributes_changes with multiple_values: true for consistency
Ivan Kuchin8f6e16981cf1
diff --git a/spec/lib/acts/journalized/differ/association_spec.rb b/spec/lib/acts/journalized/differ/association_spec.rbindex 3499f5afcca..cb1a664ff91 100644--- a/spec/lib/acts/journalized/differ/association_spec.rb+++ b/spec/lib/acts/journalized/differ/association_spec.rb@@ -186,6 +186,27 @@ RSpec.describe Acts::Journalized::Differ::Association doendend+ # this case should not be needed, added for coverting all cases+ describe "requesting all values changes as array" do+ let(:multiple_values) { true }++ it "returns the changes" do+ expect(result)+ .to eq(+ "project_life_cycle_steps_1_active" => [[false], [true]],++ "project_life_cycle_steps_2_active" => [nil, [true]],++ "project_life_cycle_steps_3_active" => [[true], [false]],+ "project_life_cycle_steps_3_start_date" => [nil, [Date.new(2024, 1, 17)]],+ "project_life_cycle_steps_3_end_date" => [nil, [Date.new(2024, 1, 18)]],++ "project_life_cycle_steps_4_start_date" => [[Date.new(2024, 1, 16)], [Date.new(2024, 1, 17)]],+ "project_life_cycle_steps_4_end_date" => [[Date.new(2024, 1, 17)], [Date.new(2024, 1, 18)]]+ )+ end+ end+describe "requesting single value change" dolet(:multiple_values) { false }