demarches-normaliennes/spec/factories/entreprise.rb

21 lines
589 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :entreprise do
siren '440117620'
capital_social 537_100_000
numero_tva_intracommunautaire 'FR27440117620'
forme_juridique 'SA à conseil d\'administration (s.a.i.)'
forme_juridique_code '5599'
nom_commercial 'GRTGAZ'
raison_sociale 'GRTGAZ'
siret_siege_social '44011762001530'
code_effectif_entreprise '51'
2016-01-28 11:29:44 +01:00
date_creation Time.at(1453976189).to_datetime
2017-07-11 16:50:29 +02:00
trait :is_association do
after(:create) do |entreprise, _evaluator|
create(:rna_information, entreprise: entreprise)
end
end
end
2015-08-20 17:30:17 +02:00
end