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

disable rubycop issue as this spec will be changed soon when inline images are no longer wp attachments

as-ope446477b4c79
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 460c9c9f597..a5e2f5b4e1e 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
@@ -290,7 +290,7 @@ RSpec.describe WorkPackage::PDFExport::WorkPackageToPdf do
# simulate a null pointer exception
# https://appsignal.com/openproject-gmbh/sites/62a6d833d2a5e482c1ef825d/exceptions/incidents/2326/samples/62a6d833d2a5e482c1ef825d-848752493603098719217252846401
# where attachment data is in the database but the file is missing, corrupted or not accessible
- allow_any_instance_of(Attachment).to receive(:file).and_return(nil)
+ allow_any_instance_of(Attachment).to receive(:file).and_return(nil) # rubocop:disable RSpec/AnyInstance
end
it "still finishes the export" do