[#1999] Remove dead code
This commit is contained in:
parent
3930e85458
commit
a62adb4307
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue