This commit is contained in:
Kara Diaby 2022-10-20 13:07:47 +02:00
parent 476dd7e699
commit 9529c6ba9c

View file

@ -13,6 +13,7 @@ describe Administrateurs::ProceduresController, type: :controller do
let(:lien_site_web) { 'http://mon-site.gouv.fr' }
let(:zone) { create(:zone) }
let(:zone_ids) { [zone.id] }
let(:tags) { "[\"planete\",\"environnement\"]" }
describe '#apercu' do
render_views
@ -56,7 +57,8 @@ describe Administrateurs::ProceduresController, type: :controller do
duree_conservation_dossiers_dans_ds: duree_conservation_dossiers_dans_ds,
monavis_embed: monavis_embed,
zone_ids: zone_ids,
lien_site_web: lien_site_web
lien_site_web: lien_site_web,
tags: tags
}
}
@ -206,6 +208,7 @@ describe Administrateurs::ProceduresController, type: :controller do
it { expect(subject.organisation).to eq(organisation) }
it { expect(subject.administrateurs).to eq([admin]) }
it { expect(subject.duree_conservation_dossiers_dans_ds).to eq(duree_conservation_dossiers_dans_ds) }
it { expect(subject.tags).to eq(["planete", "environnement"]) }
end
it { is_expected.to redirect_to(champs_admin_procedure_path(Procedure.last)) }