mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Fix domain factory
registry-180
This commit is contained in:
parent
66800402cb
commit
411079f654
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ FactoryGirl.define do
|
|||
registrant
|
||||
|
||||
after :build do |domain|
|
||||
domain.class.skip_callback(:commit, :after, :update_whois_record) # Otherwise FactoryGirl reports Domain#json= method as undefined
|
||||
domain.nameservers << FactoryGirl.build_pair(:nameserver)
|
||||
domain.admin_domain_contacts << FactoryGirl.build(:admin_domain_contact)
|
||||
domain.tech_domain_contacts << FactoryGirl.build(:tech_domain_contact)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue