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

add note

as-op1e94a71988b6
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 b456e1db14e..f384afcb8b4 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
@@ -106,7 +106,7 @@ RSpec.describe WorkPackage::PDFExport::WorkPackageToPdf do
result << value if value.present?
result
end
-
+ # Joining the results for comparison since word wrapping leads to a different array for the same content
expect(pdf[:strings].join(' ')).to eq([
"#{type.name} ##{work_package.id} - #{work_package.subject}",
*details,