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 attachment spec now that it's outputting filename as well
Oliver Güntherdafa2a3aac7c
diff --git a/spec/models/attachment_spec.rb b/spec/models/attachment_spec.rbindex 02434562605..6f058df551c 100644--- a/spec/models/attachment_spec.rb+++ b/spec/models/attachment_spec.rb@@ -248,7 +248,7 @@ describe Attachment, type: :model dobefore { image_attachment.save! }it "should make S3 use content_disposition inline" do- expect(image_attachment.content_disposition).to eq "inline"+ expect(image_attachment.content_disposition).to eq "inline; filename=image.png"expect(image_attachment.external_url.to_s).to include "response-content-disposition=inline"end@@ -262,7 +262,7 @@ describe Attachment, type: :model dobefore { text_attachment.save! }it "should make S3 use content_disposition inline" do- expect(text_attachment.content_disposition).to eq "inline"+ expect(text_attachment.content_disposition).to eq "inline; filename=testfile.txt"expect(text_attachment.external_url.to_s).to include "response-content-disposition=inline"endend@@ -282,7 +282,7 @@ describe Attachment, type: :model dobefore { binary_attachment.save! }it "should make S3 use content_disposition 'attachment; filename=...'" do- expect(binary_attachment.content_disposition).to eq "attachment"+ expect(binary_attachment.content_disposition).to eq "attachment; filename=textfile.txt.gz"expect(binary_attachment.external_url.to_s).to include "response-content-disposition=attachment"endend