Non tratta l'EOF SMTP come invio riuscito e toglie quei falsi errori dalla lista.
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-07 12:32:18 +02:00
co-authored by Cursor
parent 238bbb0c68
commit 4cf34b2033
4 changed files with 27 additions and 6 deletions
+15
View File
@@ -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