Domain creating refactor

This commit is contained in:
Martin Lensment 2014-08-11 16:41:31 +03:00
parent a01f03a6d5
commit b26345dde4
8 changed files with 103 additions and 86 deletions

View file

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

View file

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

View file

@ -0,0 +1,3 @@
Fabricator(:nameserver) do
hostname { "ns.#{Faker::Internet.domain_word}.ee" }
end