mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Honor contacts status on epp request #2477
This commit is contained in:
parent
601592aed1
commit
54db11812b
4 changed files with 59 additions and 7 deletions
|
@ -179,17 +179,17 @@ describe Contact do
|
|||
|
||||
it 'should have linked status when domain' do
|
||||
contact = Fabricate(:contact)
|
||||
tech_domain_contact = Fabricate(:tech_domain_contact, contact_id: @contact.id)
|
||||
tech_domain_contact = Fabricate(:tech_domain_contact, contact_id: contact.id)
|
||||
contact.statuses.should == %w(ok)
|
||||
# domain = Fabricate(:domain, tech_domain_contacts: [@tech_domain_contact])
|
||||
domain = Fabricate(:domain, tech_domain_contacts: [tech_domain_contact])
|
||||
|
||||
contact = domain.contacts.first
|
||||
contact.save
|
||||
contact.reload.statuses.should == %w(linked ok)
|
||||
|
||||
# contact = @domain.contacts.first
|
||||
# contact.save
|
||||
contact.statuses.sort.should == %w(linked ok)
|
||||
|
||||
# contact.statuses.sort.should == %w(linked ok)
|
||||
contact = domain.contacts.second
|
||||
contact.save
|
||||
contact.statuses.sort.should == %w(linked ok)
|
||||
end
|
||||
|
||||
it 'should not have linked status when no domain' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue