Merge branch 'improve-registrar' into registry-267

# Conflicts:
#	db/schema-read-only.rb
#	db/structure.sql
This commit is contained in:
Artur Beljajev 2016-12-28 15:31:04 +02:00
commit 5c6a0034f6
15 changed files with 316 additions and 22 deletions

View file

@ -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

View file

@ -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