2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-06 15:51:08 +01:00
|
|
|
describe 'administrateurs/mail_templates/edit', type: :view do
|
2018-01-04 10:37:40 +01:00
|
|
|
let(:procedure) { create(:procedure) }
|
2018-01-08 17:48:08 +01:00
|
|
|
let(:mail_template) { create(:received_mail, procedure: procedure) }
|
2018-01-04 16:34:23 +01:00
|
|
|
let(:all_tags) { mail_template.tags }
|
2018-01-04 10:37:40 +01:00
|
|
|
|
|
|
|
before do
|
2020-08-25 11:40:24 +02:00
|
|
|
allow(view).to receive(:admin_procedure_mail_templates_path).and_return("/toto")
|
2018-01-04 10:37:40 +01:00
|
|
|
allow(view).to receive(:admin_procedure_mail_templates_path).and_return("/toto")
|
|
|
|
|
|
|
|
assign(:mail_template, mail_template)
|
2019-03-14 14:58:01 +01:00
|
|
|
assign(:procedure, procedure)
|
2018-01-04 10:37:40 +01:00
|
|
|
end
|
|
|
|
|
2018-01-04 16:34:23 +01:00
|
|
|
context "Champs are listed in the page" do
|
2018-01-04 10:37:40 +01:00
|
|
|
it { expect(all_tags).to include(include({ libelle: 'numéro du dossier' })) }
|
|
|
|
end
|
|
|
|
end
|