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 specs for export footer changes

as-opc29354a30d20
diff --git a/spec/models/work_packages/pdf_export/work_package_to_pdf_spec.rb b/spec/models/work_packages/pdf_export/work_package_to_pdf_spec.rb
index dd17000ba08..767475eb606 100644
--- a/spec/models/work_packages/pdf_export/work_package_to_pdf_spec.rb
+++ b/spec/models/work_packages/pdf_export/work_package_to_pdf_spec.rb
@@ -178,12 +178,16 @@ RSpec.describe WorkPackage::PDFExport::WorkPackageToPdf do
author: another_user,
assigned_to: another_user)
.tap do |wp|
- allow(wp)
- .to receive(:attachments)
- .and_return attachments
- end
+ allow(wp)
+ .to receive(:attachments)
+ .and_return attachments
+ end
end
- let(:options) { {} }
+ let(:options) {
+ {
+ footer_text_right: project.name
+ }
+ }
let(:exporter) do
described_class.new(work_package, options)
end