mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
parent
9a152b8289
commit
eb95299c82
7 changed files with 78 additions and 8 deletions
|
@ -21,5 +21,19 @@ FactoryGirl.define 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
|
||||
|
|
|
@ -4,5 +4,7 @@ FactoryGirl.define do
|
|||
|
||||
factory :registrant_private_entity, class: Registrant, parent: :contact_private_entity
|
||||
factory :registrant_legal_entity, class: Registrant, parent: :contact_legal_entity
|
||||
factory :registrant_with_address, class: Registrant, parent: :contact_with_address
|
||||
factory :registrant_without_address, class: Registrant, parent: :contact_without_address
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue