tests
This commit is contained in:
parent
476dd7e699
commit
9529c6ba9c
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ describe Administrateurs::ProceduresController, type: :controller do
|
||||||
let(:lien_site_web) { 'http://mon-site.gouv.fr' }
|
let(:lien_site_web) { 'http://mon-site.gouv.fr' }
|
||||||
let(:zone) { create(:zone) }
|
let(:zone) { create(:zone) }
|
||||||
let(:zone_ids) { [zone.id] }
|
let(:zone_ids) { [zone.id] }
|
||||||
|
let(:tags) { "[\"planete\",\"environnement\"]" }
|
||||||
|
|
||||||
describe '#apercu' do
|
describe '#apercu' do
|
||||||
render_views
|
render_views
|
||||||
|
@ -56,7 +57,8 @@ describe Administrateurs::ProceduresController, type: :controller do
|
||||||
duree_conservation_dossiers_dans_ds: duree_conservation_dossiers_dans_ds,
|
duree_conservation_dossiers_dans_ds: duree_conservation_dossiers_dans_ds,
|
||||||
monavis_embed: monavis_embed,
|
monavis_embed: monavis_embed,
|
||||||
zone_ids: zone_ids,
|
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.organisation).to eq(organisation) }
|
||||||
it { expect(subject.administrateurs).to eq([admin]) }
|
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.duree_conservation_dossiers_dans_ds).to eq(duree_conservation_dossiers_dans_ds) }
|
||||||
|
it { expect(subject.tags).to eq(["planete", "environnement"]) }
|
||||||
end
|
end
|
||||||
|
|
||||||
it { is_expected.to redirect_to(champs_admin_procedure_path(Procedure.last)) }
|
it { is_expected.to redirect_to(champs_admin_procedure_path(Procedure.last)) }
|
||||||
|
|
Loading…
Reference in a new issue