models: require belong_to associations on geo_area

This commit is contained in:
Pierre de La Morinerie 2020-07-20 16:50:12 +02:00
parent aff2713032
commit afb1c33154
3 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,7 @@
FactoryBot.define do
factory :geo_area do
association :champ
trait :cadastre do
source { GeoArea.sources.fetch(:cadastre) }
numero { '42' }