Adapt configuration email view to the new UI

This commit is contained in:
kara Diaby 2020-08-06 16:32:51 +02:00
parent 759298ddfa
commit 9b66c894b2
5 changed files with 35 additions and 12 deletions

View file

@ -6,16 +6,6 @@ describe Admin::MailTemplatesController, type: :controller do
sign_in(procedure.administrateurs.first.user)
end
describe 'GET index' do
render_views
subject { get :index, params: { procedure_id: procedure.id } }
it { expect(subject.status).to eq 200 }
it { expect(subject.body).to include("E-mails personnalisables") }
it { expect(subject.body).to include(Mails::InitiatedMail::DISPLAYED_NAME) }
end
describe 'PATCH update' do
let(:mail_subject) { 'plop modif' }
let(:mail_body) { 'plip modif' }