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

adapt xls exporter spec expectations

ulferts0368e1261aab
diff --git a/modules/xls_export/spec/models/xls_export/work_package/exporter/xls_integration_spec.rb b/modules/xls_export/spec/models/xls_export/work_package/exporter/xls_integration_spec.rb
index 4aadad93760..912122cb4b8 100644
--- a/modules/xls_export/spec/models/xls_export/work_package/exporter/xls_integration_spec.rb
+++ b/modules/xls_export/spec/models/xls_export/work_package/exporter/xls_integration_spec.rb
@@ -233,7 +233,7 @@ RSpec.describe XlsExport::WorkPackage::Exporter::XLS do
# Check row after header row
hours = sheet.rows[1].values_at(2)
- expect(hours).to include(27.5)
+ expect(hours).to include("27.5 h")
end
end
@@ -325,7 +325,7 @@ RSpec.describe XlsExport::WorkPackage::Exporter::XLS do
it 'adapts the datetime fields to the user time zone' do
work_package.reload
estimated_cell = sheet.rows.last.to_a.last
- expect(estimated_cell).to eq '(15.0)'
+ expect(estimated_cell).to eq '(15.0 h)'
end
end
@@ -344,7 +344,7 @@ RSpec.describe XlsExport::WorkPackage::Exporter::XLS do
it 'outputs both values' do
work_package.reload
estimated_cell = sheet.rows.last.to_a.last
- expect(estimated_cell).to eq '0.0 (15.0)'
+ expect(estimated_cell).to eq '0.0 h (15.0 h)'
end
end
end