Update spec/models/dossier_spec.rb
Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
This commit is contained in:
parent
84214f4bd4
commit
224c7ec6c3
1 changed files with 1 additions and 1 deletions
|
@ -1376,7 +1376,7 @@ describe Dossier do
|
||||||
context "when procedure brouillon" do
|
context "when procedure brouillon" do
|
||||||
let(:procedure) { create(:procedure, :with_type_de_champ, :with_explication) }
|
let(:procedure) { create(:procedure, :with_type_de_champ, :with_explication) }
|
||||||
|
|
||||||
it "should not contain explication type de champ" do
|
it "should not contain non-exportable types de champ" do
|
||||||
expect(dossier.champs_for_export(dossier.procedure.types_de_champ_for_export).map { |(libelle)| libelle }).to eq([text_type_de_champ.libelle])
|
expect(dossier.champs_for_export(dossier.procedure.types_de_champ_for_export).map { |(libelle)| libelle }).to eq([text_type_de_champ.libelle])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue