diff --git a/spec/mailers/previews/invite_mailer_preview.rb b/spec/mailers/previews/invite_mailer_preview.rb index f594f2ae8..385d5fe85 100644 --- a/spec/mailers/previews/invite_mailer_preview.rb +++ b/spec/mailers/previews/invite_mailer_preview.rb @@ -15,10 +15,15 @@ class InviteMailerPreview < ActionMailer::Preview dossier: dossier, user: invited_user, email: invited_user.email, - email_sender: 'sender@gouv.fr' + email_sender: 'sender@gouv.fr', + targeted_user_link: targeted_user_link ) end + def targeted_user_link + TargetedUserLink.new(id: SecureRandom.uuid) + end + def dossier Dossier.new(procedure: procedure) end