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

Fix updated_at timing

Klaus Zanders4a1ec3e578be
diff --git a/spec/models/work_package/work_package_acts_as_journalized_spec.rb b/spec/models/work_package/work_package_acts_as_journalized_spec.rb
index 85c59e1b30b..d4e6aca438a 100644
--- a/spec/models/work_package/work_package_acts_as_journalized_spec.rb
+++ b/spec/models/work_package/work_package_acts_as_journalized_spec.rb
@@ -496,7 +496,7 @@ RSpec.describe WorkPackage do
end
it 'has the timestamp of the work package update time for created_at' do
- expect(work_package.last_journal.updated_at).to eql(work_package.updated_at)
+ expect(work_package.last_journal.updated_at).to eql(work_package.reload.updated_at)
end
it 'does create a new journal entry' do