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

Update journal factory to use explicit association

Mir Bhatia6cfc296b3426
diff --git a/spec/factories/journal_factory.rb b/spec/factories/journal_factory.rb
index 87308906445..1f700dbd84a 100644
--- a/spec/factories/journal_factory.rb
+++ b/spec/factories/journal_factory.rb
@@ -67,7 +67,7 @@ FactoryBot.define do
factory :time_entry_journal, class: 'Journal' do
journable_type { 'TimeEntry' }
- data { build(:journal_time_entry_journal) }
+ data { association(:journal_time_entry_journal) }
end
end
end