mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
39 lines
746 B
Ruby
39 lines
746 B
Ruby
FactoryGirl.define do
|
|
factory :contact do
|
|
name 'test'
|
|
sequence(:code) { |n| "test#{n}" }
|
|
phone '+123.456789'
|
|
email 'test@test.com'
|
|
street 'test'
|
|
city 'test'
|
|
zip 12345
|
|
country_code 'EE'
|
|
ident '37605030299'
|
|
ident_type 'priv'
|
|
ident_country_code 'EE'
|
|
registrar
|
|
|
|
factory :contact_private_entity do
|
|
ident_type 'priv'
|
|
end
|
|
|
|
factory :contact_legal_entity do
|
|
ident_type 'org'
|
|
ident '12345678' # valid reg no for .ee
|
|
end
|
|
|
|
factory :contact_with_address do
|
|
street 'test'
|
|
city 'test'
|
|
zip 12345
|
|
country_code 'EE'
|
|
end
|
|
|
|
factory :contact_without_address do
|
|
street nil
|
|
city nil
|
|
zip nil
|
|
country_code nil
|
|
end
|
|
end
|
|
end
|