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

Expect changed content_type

Oliver Günther69eb40e7a38b
diff --git a/spec/workers/attachments/finish_direct_upload_job_integration_spec.rb b/spec/workers/attachments/finish_direct_upload_job_integration_spec.rb
index dc83bfc03ca..ea16e4d3099 100644
--- a/spec/workers/attachments/finish_direct_upload_job_integration_spec.rb
+++ b/spec/workers/attachments/finish_direct_upload_job_integration_spec.rb
@@ -48,8 +48,9 @@ describe Attachments::FinishDirectUploadJob, 'integration', type: :job do
expect(attachment.downloads)
.to eql(0)
+ # expect to replace the content type with the actual value
expect(attachment.content_type)
- .to eql('application/binary')
+ .to eql('text/plain')
expect(attachment.digest)
.to eql("9473fdd0d880a43c21b7778d34872157")
end