mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 00:33:36 +02:00
Contact linked test update/refactor #2411
This commit is contained in:
parent
7fa9fb3c6e
commit
a9ba4dbfd2
7 changed files with 16 additions and 10 deletions
|
@ -137,8 +137,8 @@ describe Contact do
|
|||
end
|
||||
end
|
||||
|
||||
it 'should not have relation' do
|
||||
@contact.relations_with_domain?.should == false
|
||||
it 'should not have relation with domains' do
|
||||
@contact.domains_present?.should == false
|
||||
end
|
||||
|
||||
it 'bic should be valid' do
|
||||
|
@ -234,9 +234,15 @@ describe Contact do
|
|||
|
||||
it 'should have related domain descriptions hash' do
|
||||
contact = @domain.registrant
|
||||
contact.reload # somehow it registrant_domains are empty?
|
||||
contact.related_domain_descriptions.should == { "#{@domain.name}" => [:registrant] }
|
||||
end
|
||||
|
||||
it 'should have related domain descriptions hash when find directly' do
|
||||
contact = @domain.registrant
|
||||
Contact.find(contact.id).related_domain_descriptions.should == { "#{@domain.name}" => [:registrant] }
|
||||
end
|
||||
|
||||
it 'should have related domain descriptions hash' do
|
||||
contact = @domain.contacts.first
|
||||
contact.related_domain_descriptions.should == { "#{@domain.name}" => [:admin] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue