mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
23 lines
545 B
Ruby
23 lines
545 B
Ruby
FactoryBot.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 << FactoryBot.build(:admin_domain_contact)
|
|
domain.tech_domain_contacts << FactoryBot.build(:tech_domain_contact)
|
|
end
|
|
|
|
factory :domain_without_force_delete do
|
|
force_delete_time nil
|
|
statuses []
|
|
end
|
|
|
|
factory :domain_discarded do
|
|
statuses [DomainStatus::DELETE_CANDIDATE]
|
|
end
|
|
end
|
|
end
|