2018-10-22 19:27:52 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :geo_area do
|
|
|
|
source { GeoArea.sources.fetch(:cadastre) }
|
|
|
|
numero { '42' }
|
|
|
|
feuille { 'A11' }
|
2018-10-23 15:40:39 +02:00
|
|
|
|
|
|
|
trait :quartier_prioritaire do
|
|
|
|
source { GeoArea.sources.fetch(:quartier_prioritaire) }
|
|
|
|
nom { 'XYZ' }
|
|
|
|
commune { 'Paris' }
|
|
|
|
end
|
2018-12-19 11:09:13 +01:00
|
|
|
|
|
|
|
trait :selection_utilisateur do
|
|
|
|
source { GeoArea.sources.fetch(:selection_utilisateur) }
|
|
|
|
end
|
2018-10-22 19:27:52 +02:00
|
|
|
end
|
|
|
|
end
|