internetee-registry/spec/fabricators/domain_fabricator.rb
2014-08-11 16:41:31 +03:00

9 lines
248 B
Ruby

Fabricator(:domain) do
name { "#{Faker::Internet.domain_word}.ee" }
valid_to Date.new(2014, 8, 7)
period 1
period_unit 'y'
owner_contact(fabricator: :contact)
nameservers(count: 3)
admin_contacts(count: 1) { Fabricate(:contact) }
end