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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
obey rubocop
as-op6fed4e14f13c
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.rbindex 6d71a28c255..7dfb35ef77c 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@@ -421,11 +421,8 @@ RSpec.describe WorkPackage::PDFExport::WorkPackageToPdf doprojectValue:"#{forbidden_project.identifier}":activeDESCRIPTIONend-- it "contains resolved attributes and labels" do- # Joining with space for comparison since word wrapping leads to a different array for the same content- result = pdf[:strings].join(" ")- expected_result = [+ let(:expected_result) do+ [*expected_details,label_title(:description),"Project attributes and labels",@@ -455,6 +452,11 @@ RSpec.describe WorkPackage::PDFExport::WorkPackageToPdf do"2", export_time_formatted, project.name].flatten.join(" ")+ end++ it "contains resolved attributes and labels" do+ # Joining with space for comparison since word wrapping leads to a different array for the same content+ result = pdf[:strings].join(" ")expect(result).to eq(expected_result)endend