Gestionnaire Namespace: fix send_dossier
This commit is contained in:
parent
c4cd113fbd
commit
377e4d689a
2 changed files with 12 additions and 1 deletions
|
@ -2,7 +2,7 @@ Bonjour,
|
|||
|
||||
<%= @sender.email %> vous a envoyé le dossier nº <%= @dossier.id %>, cliquez sur le lien ci-dessous pour y accéder :
|
||||
|
||||
<%= dossier_url(@dossier.procedure, @dossier) %>
|
||||
<%= gestionnaire_dossier_url(@dossier.procedure, @dossier) %>
|
||||
|
||||
Bonne journée,
|
||||
|
||||
|
|
11
spec/mailers/gestionnaire_mailer_spec.rb
Normal file
11
spec/mailers/gestionnaire_mailer_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
RSpec.describe GestionnaireMailer, type: :mailer do
|
||||
describe '#send_dossier' do
|
||||
let(:sender) { create(:gestionnaire) }
|
||||
let(:recipient) { create(:gestionnaire) }
|
||||
let(:dossier) { create(:dossier) }
|
||||
|
||||
subject { described_class.send_dossier(sender, dossier, recipient) }
|
||||
|
||||
it { expect(subject.body).to include('Bonjour') }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue