Non tratta l'EOF SMTP come invio riuscito e toglie quei falsi errori dalla lista.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -29,4 +29,19 @@ class ApplicationHelperTest < ActionView::TestCase
|
||||
assert_includes html, "title=\"Società affiliata FIPAV con un testo molto lungo da accorciare\""
|
||||
assert_includes html, "…"
|
||||
end
|
||||
|
||||
test "queued SMTP retries are not shown as delivery failures" do
|
||||
recipient = MailingRecipient.new(status: "queued", error_message: "Da ritentare (1/8): end of file reached")
|
||||
html = mailing_recipient_delivery_note(recipient)
|
||||
|
||||
assert_includes html, "Non risulta inviata"
|
||||
assert_not_includes html, "end of file reached"
|
||||
end
|
||||
|
||||
test "failed recipients still show the SMTP error" do
|
||||
recipient = MailingRecipient.new(status: "failed", error_message: "end of file reached")
|
||||
html = mailing_recipient_delivery_note(recipient)
|
||||
|
||||
assert_includes html, "end of file reached"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user