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
test why text/hyphen fails
as-opc6f84c9a2ad8
diff --git a/spec/models/work_package/pdf_export/document_generator_spec.rb b/spec/models/work_package/pdf_export/document_generator_spec.rbindex b2ef7ceb69f..f7280f0ec22 100644--- a/spec/models/work_package/pdf_export/document_generator_spec.rb+++ b/spec/models/work_package/pdf_export/document_generator_spec.rb@@ -1,4 +1,5 @@require "spec_helper"+require "text/hyphen"RSpec.describe WorkPackage::PDFExport::DocumentGenerator doinclude Redmine::I18n@@ -73,6 +74,12 @@ RSpec.describe WorkPackage::PDFExport::DocumentGenerator do}end+ it "loads the hyphenation language" do+ hyphens = Text::Hyphen.new(language: options[:hyphenation], left: 2, right: 2)+ split = hyphens.visualise("honorificabilitudinitatibus", Prawn::Text::SHY)+ expect(split).to eq("honorificabilitudinitatibus")+ end+it "contains correct data" doexpected_result = ["This is a test description with an macro:",