mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
14 lines
359 B
Ruby
14 lines
359 B
Ruby
FactoryGirl.define do
|
|
factory :domain do
|
|
sequence(:name) { |n| "test#{n}.com" }
|
|
period 1
|
|
period_unit 'y' # Year
|
|
registrar
|
|
registrant
|
|
|
|
after :build do |domain|
|
|
domain.admin_domain_contacts << FactoryGirl.build(:admin_domain_contact)
|
|
domain.tech_domain_contacts << FactoryGirl.build(:tech_domain_contact)
|
|
end
|
|
end
|
|
end
|