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

quick fix wp journal specs

ulferts05e673760647
diff --git a/modules/bim/spec/bcf/bcf_xml/issue_reader_spec.rb b/modules/bim/spec/bcf/bcf_xml/issue_reader_spec.rb
index b9017bdb77a..996d68dee5a 100644
--- a/modules/bim/spec/bcf/bcf_xml/issue_reader_spec.rb
+++ b/modules/bim/spec/bcf/bcf_xml/issue_reader_spec.rb
@@ -153,7 +153,7 @@ describe ::OpenProject::Bim::BcfXml::IssueReader do
context 'on updating import' do
describe '#update_comment' do
let(:work_package) { create(:work_package) }
- let!(:bcf_issue) { create :bcf_issue_with_comment, work_package: }
+ let!(:bcf_issue) { create(:bcf_issue_with_comment, work_package:) }
before do
allow(subject).to receive(:issue).and_return(bcf_issue)
diff --git a/spec/factories/journal/work_package_journal_factory.rb b/spec/factories/journal/work_package_journal_factory.rb
index 04f807d71f0..01f37e7f135 100644
--- a/spec/factories/journal/work_package_journal_factory.rb
+++ b/spec/factories/journal/work_package_journal_factory.rb
@@ -29,5 +29,13 @@
FactoryBot.define do
factory :journal_work_package_journal, class: 'Journal::WorkPackageJournal' do
ignore_non_working_days { false }
+ # The following properties are not actually valid.
+ # They were added when the default value (also 0) was removed and too many
+ # tests relied on this behaviour for it to be fixed right away.
+ type_id { 0 }
+ project_id { 0 }
+ status_id { 0 }
+ priority_id { 0 }
+ author_id { 0 }
end
end