[#1999] Remove dead code

This commit is contained in:
Frederic Merizen 2018-05-30 17:07:29 +02:00
parent 3930e85458
commit a62adb4307
2 changed files with 1 additions and 5 deletions

View file

@ -20,10 +20,6 @@ class NotificationMailer < ApplicationMailer
send_notification(dossier, dossier.procedure.initiated_mail_template)
end
def send_received_notification(dossier)
send_notification(dossier, dossier.procedure.received_mail_template)
end
def send_closed_notification(dossier)
send_notification(dossier, dossier.procedure.closed_mail_template)
end

View file

@ -246,7 +246,7 @@ describe NewUser::DossiersController, type: :controller do
it { expect(flash.alert).to eq(['nop']) }
it 'does not send an email' do
expect(NotificationMailer).not_to receive(:send_received_notification)
expect(NotificationMailer).not_to receive(:send_initiated_notification)
subject
end