2018-01-23 17:15:42 +01:00
|
|
|
FactoryBot.define do
|
2015-12-08 10:11:58 +01:00
|
|
|
factory :module_api_carto do
|
2018-09-04 16:46:48 +02:00
|
|
|
use_api_carto { false }
|
|
|
|
quartiers_prioritaires { false }
|
|
|
|
cadastre { false }
|
2015-12-08 10:11:58 +01:00
|
|
|
|
|
|
|
trait :with_api_carto do
|
2018-09-04 16:46:48 +02:00
|
|
|
use_api_carto { true }
|
2015-12-08 10:11:58 +01:00
|
|
|
end
|
|
|
|
|
2015-12-08 11:18:49 +01:00
|
|
|
trait :with_quartiers_prioritaires do
|
2018-09-04 16:46:48 +02:00
|
|
|
use_api_carto { true }
|
|
|
|
quartiers_prioritaires { true }
|
2015-12-08 10:11:58 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :with_cadastre do
|
2018-09-04 16:46:48 +02:00
|
|
|
use_api_carto { true }
|
|
|
|
cadastre { true }
|
2015-12-08 10:11:58 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :with_qp_and_cadastre do
|
2018-09-04 16:46:48 +02:00
|
|
|
use_api_carto { true }
|
|
|
|
quartiers_prioritaires { true }
|
|
|
|
cadastre { true }
|
2015-12-08 10:11:58 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|