demarches-normaliennes/spec/views/administrateurs/mail_templates/edit.html.haml.spec.rb
2024-08-22 09:26:48 +02:00

19 lines
651 B
Ruby

# frozen_string_literal: true
describe 'administrateurs/mail_templates/edit', type: :view do
let(:procedure) { create(:procedure) }
let(:mail_template) { create(:received_mail, procedure: procedure) }
let(:all_tags) { mail_template.tags }
before do
allow(view).to receive(:admin_procedure_mail_templates_path).and_return("/toto")
allow(view).to receive(:admin_procedure_mail_templates_path).and_return("/toto")
assign(:mail_template, mail_template)
assign(:procedure, procedure)
end
context "Champs are listed in the page" do
it { expect(all_tags).to include(include({ libelle: 'numéro du dossier' })) }
end
end