mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Merge branch 'improve-registrar' into registry-267
# Conflicts: # db/schema-read-only.rb # db/structure.sql
This commit is contained in:
commit
5c6a0034f6
15 changed files with 316 additions and 22 deletions
|
@ -12,5 +12,14 @@ FactoryGirl.define do
|
|||
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
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
FactoryGirl.define do
|
||||
factory :registrant, parent: :contact, class: Registrant do
|
||||
name 'test'
|
||||
|
||||
factory :registrant_private_entity, class: Registrant, parent: :contact_private_entity
|
||||
factory :registrant_legal_entity, class: Registrant, parent: :contact_legal_entity
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue