FIX: bounced email can contain multiple status codes

This commit is contained in:
Gerhard Schlager
2018-01-03 17:59:20 +01:00
parent 7ca2e6a80c
commit ceb7590bcb
3 changed files with 49 additions and 1 deletions

View File

@ -81,6 +81,9 @@ describe Email::Receiver do
it "raises a BouncerEmailError when email is a bounced email" do
expect { process(:bounced_email) }.to raise_error(Email::Receiver::BouncedEmailError)
expect(IncomingEmail.last.is_bounce).to eq(true)
expect { process(:bounced_email_multiple_status_codes) }.to raise_error(Email::Receiver::BouncedEmailError)
expect(IncomingEmail.last.is_bounce).to eq(true)
end
it "logs a blank error" do