mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
15 lines
430 B
Ruby
15 lines
430 B
Ruby
Fabricator(:domain) do
|
|
name { sequence(:name) { |i| "domain#{i}.ee" } }
|
|
valid_to Date.new(2014, 8, 7)
|
|
period 1
|
|
period_unit 'y'
|
|
owner_contact(fabricator: :contact)
|
|
nameservers(count: 3)
|
|
admin_domain_contacts(count: 1) { Fabricate(:admin_domain_contact) }
|
|
registrar
|
|
auth_info '98oiewslkfkd'
|
|
end
|
|
|
|
Fabricator(:domain_with_dnskeys, from: :domain) do
|
|
after_create { |domain| Fabricate(:dnskey, domain: domain) }
|
|
end
|