FIX: allow an admin to click on blank errors (#5027)

* FIX: allow an admin to click on blank errors

* i18nlize strings

* what would a rails master do?
This commit is contained in:
Leo McArdle
2017-08-04 19:04:26 +01:00
committed by Régis Hanol
parent a3ef814245
commit a7b7fe335f
6 changed files with 28 additions and 4 deletions

View File

@ -66,9 +66,9 @@ describe Email::Processor do
Rails.logger.expects(:error)
Email::Processor.process!(mail)
expect(IncomingEmail.first.error).to eq("boom")
expect(IncomingEmail.first.rejection_message).to be_present
expect(EmailLog.first.email_type).to eq("email_reject_unrecognized_error")
expect(IncomingEmail.last.error).to eq("boom")
expect(IncomingEmail.last.rejection_message).to be_present
expect(EmailLog.last.email_type).to eq("email_reject_unrecognized_error")
end
it "sends more than one rejection email per day" do