demarches-normaliennes/spec/factories/module_api_carto.rb
Xavier J 11596ade65 - QP not research if module_api_carto have not activated quartiers_prioritaires
- Carte page is not accessible if module_api_cart have not activated use_api_carto
2015-12-08 11:18:49 +01:00

27 lines
517 B
Ruby

FactoryGirl.define do
factory :module_api_carto do
use_api_carto false
quartiers_prioritaires false
cadastre false
trait :with_api_carto do
use_api_carto true
end
trait :with_quartiers_prioritaires do
use_api_carto true
quartiers_prioritaires true
end
trait :with_cadastre do
use_api_carto true
cadastre true
end
trait :with_qp_and_cadastre do
use_api_carto true
quartiers_prioritaires true
cadastre true
end
end
end