mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Add test to see if whois record updated
This commit is contained in:
parent
28e8b06728
commit
10921ef128
1 changed files with 9 additions and 0 deletions
|
@ -248,6 +248,15 @@ class ContactTest < ActiveSupport::TestCase
|
||||||
assert_equal %w[ok], contact.statuses
|
assert_equal %w[ok], contact.statuses
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_whois_gets_updated_after_contact_save
|
||||||
|
@contact.name = 'SomeReallyWeirdRandomTestName'
|
||||||
|
domain = @contact.registrant_domains.first
|
||||||
|
|
||||||
|
@contact.save!
|
||||||
|
|
||||||
|
assert_equal domain.whois_record.try(:json).try(:[], 'registrant'), @contact.name
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def make_contact_free_of_domains_where_it_acts_as_a_registrant(contact)
|
def make_contact_free_of_domains_where_it_acts_as_a_registrant(contact)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue