Evita 500 senza SMTP e chiude gli incidenti overflow stale.

Reset password e mail replay usano deliver_mail; il health check overflow risolve tutte le fingerprint del kind, non solo quella sana.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-31 08:55:36 +02:00
co-authored by Cursor
parent b08049cf69
commit 645807b853
9 changed files with 104 additions and 3 deletions
@@ -27,4 +27,22 @@ RSpec.describe Recordings::NotifyReady do
expect(recording.reload.ready_notified_at).to be_present
end
it "marca notificato anche se in produzione manca SMTP" do
recording = Recording.create!(
stream_session: session,
team: team,
status: "ready",
expires_at: 10.days.from_now,
storage_key: "key"
)
allow(MatchLiveTv).to receive(:smtp_configured?).and_return(false)
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new("production"))
expect {
described_class.new(recording).call
}.not_to change { ActionMailer::Base.deliveries.size }
expect(recording.reload.ready_notified_at).to be_present
end
end