mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 05:30:48 +08:00
FIX: Email attachments with a size of 0 bytes caused error
This commit is contained in:
@ -597,6 +597,14 @@ describe Email::Receiver do
|
||||
MD
|
||||
end
|
||||
|
||||
it "works with removed attachments" do
|
||||
SiteSetting.authorized_extensions = "jpg"
|
||||
|
||||
expect { process(:removed_attachments) }.to change { topic.posts.count }
|
||||
post = topic.posts.last
|
||||
expect(post.uploads).to be_empty
|
||||
end
|
||||
|
||||
it "supports eml attachments" do
|
||||
SiteSetting.authorized_extensions = "eml"
|
||||
expect { process(:attached_eml_file) }.to change { topic.posts.count }
|
||||
|
Reference in New Issue
Block a user