mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Domain creating refactor
This commit is contained in:
parent
a01f03a6d5
commit
b26345dde4
8 changed files with 103 additions and 86 deletions
|
@ -2,8 +2,8 @@ Fabricator(:contact) do
|
|||
name Faker::Name.name
|
||||
phone '+372.12345678'
|
||||
email Faker::Internet.email
|
||||
ident '37605030299'
|
||||
code "sh#{Faker::Number.number(4)}"
|
||||
ident '37605030299'
|
||||
code { "sh#{Faker::Number.number(4)}" }
|
||||
ident_type 'op'
|
||||
address
|
||||
end
|
||||
|
|
|
@ -4,4 +4,6 @@ Fabricator(:domain) do
|
|||
period 1
|
||||
period_unit 'y'
|
||||
owner_contact(fabricator: :contact)
|
||||
nameservers(count: 3)
|
||||
admin_contacts(count: 1) { Fabricate(:contact) }
|
||||
end
|
||||
|
|
3
spec/fabricators/nameserver_fabricator.rb
Normal file
3
spec/fabricators/nameserver_fabricator.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
Fabricator(:nameserver) do
|
||||
hostname { "ns.#{Faker::Internet.domain_word}.ee" }
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue