Update spec/models/dossier_spec.rb

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
This commit is contained in:
Paul Chavard 2021-03-23 10:51:55 +01:00 committed by GitHub
parent 84214f4bd4
commit 224c7ec6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1376,7 +1376,7 @@ describe Dossier do
context "when procedure brouillon" do
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])
end
end