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
Fix export job for bim
Oliver Günther6ff21c6b961d
diff --git a/modules/bim/spec/workers/work_packages/exports/export_job_spec.rb b/modules/bim/spec/workers/work_packages/exports/export_job_spec.rbindex de62b36fb22..2e4b87d2f70 100644--- a/modules/bim/spec/workers/work_packages/exports/export_job_spec.rb+++ b/modules/bim/spec/workers/work_packages/exports/export_job_spec.rb@@ -59,22 +59,16 @@ describe WorkPackages::Exports::ExportJob dolet(:mime_type) { :bcf }it 'issues an OpenProject::Bim::BcfXml::Exporter export' do- file = double(File)- allow(file)- .to receive(:is_a?)- .with(File)- .and_return true-result = WorkPackage::Exporter::Result::Success.new(format: 'blubs',- title: 'some_title',- content: file,+ title: "some_title.#{mime_type}",+ content: 'some content',mime_type: "application/octet-stream")service = double('attachments create service')expect(Attachments::CreateService).to receive(:new)- .with(export, author: user)+ .with(user: user).and_return(service)expect(WorkPackages::Exports::CleanupOutdatedJob)@@ -82,7 +76,7 @@ describe WorkPackages::Exports::ExportJob doexpect(service).to(receive(:call))- .and_return attachment+ .and_return(ServiceResult.new(result: attachment, success: true))allow(OpenProject::Bim::BcfXml::Exporter).to receive(:list)