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

linting

ulferts28302404bb6d
diff --git a/app/models/journable/with_historic_attributes.rb b/app/models/journable/with_historic_attributes.rb
index dd8dcbcd25d..835e7257d9f 100644
--- a/app/models/journable/with_historic_attributes.rb
+++ b/app/models/journable/with_historic_attributes.rb
@@ -148,6 +148,7 @@ class Journable::WithHistoricAttributes < SimpleDelegator
def exists_at_timestamps
timestamps.select { |t| at_timestamp(t).present? }
end
+
def baseline_timestamp
timestamps.first
end
diff --git a/spec/models/journable/with_historic_attributes_spec.rb b/spec/models/journable/with_historic_attributes_spec.rb
index 64dab3bfd9d..f9fcd9a90d0 100644
--- a/spec/models/journable/with_historic_attributes_spec.rb
+++ b/spec/models/journable/with_historic_attributes_spec.rb
@@ -101,7 +101,8 @@ describe Journable::WithHistoricAttributes do
journal_attributes = work_package_attributes \
.extract!(*Journal::WorkPackageJournal.attribute_names) \
.symbolize_keys.merge(attributes)
- create(:work_package_journal, version:,
+ create(:work_package_journal,
+ version:,
journable:, created_at: timestamp, updated_at: timestamp,
data: build(:journal_work_package_journal, journal_attributes))
end