[#2180] Do not double-expose migrated type PJ as type champ PJ

This commit is contained in:
Frederic Merizen 2019-01-10 18:50:12 +01:00
parent 63519f04c8
commit d01270eff2
2 changed files with 5 additions and 1 deletions

View file

@ -96,5 +96,9 @@ describe DossierSerializer do
]
)
end
it "does not expose the PJ as a champ" do
expect(subject[:champs]).not_to include(a_hash_including(type_de_champ: a_hash_including(id: migrated_type_champ.id)))
end
end
end