FIX: don't use 'Return-Path' header to determine whether the email was auto generated

This commit is contained in:
Régis Hanol
2016-02-01 10:21:58 +01:00
parent ce8c2d34d7
commit 27aaed0aa5
3 changed files with 0 additions and 12 deletions

View File

@ -29,10 +29,6 @@ describe Email::Receiver do
expect { Email::Receiver.new(email(:missing_message_id)) }.to raise_error(Email::Receiver::NoMessageIdError)
end
it "raises an AutoGeneratedEmailError when the mail has no return path" do
expect { process(:no_return_path) }.to raise_error(Email::Receiver::AutoGeneratedEmailError)
end
it "raises an AutoGeneratedEmailError when the mail is auto generated" do
expect { process(:auto_generated_precedence) }.to raise_error(Email::Receiver::AutoGeneratedEmailError)
expect { process(:auto_generated_header) }.to raise_error(Email::Receiver::AutoGeneratedEmailError)