mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 15:44:45 +02:00
Add test to check if Whois::Record saved
This commit is contained in:
parent
bc69e05c91
commit
d35042a1be
1 changed files with 14 additions and 0 deletions
|
@ -58,6 +58,20 @@ class DomainReleasableAuctionableTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_updates_whois
|
||||||
|
@domain.update!(delete_date: '2010-07-04')
|
||||||
|
travel_to Time.zone.parse('2010-07-05')
|
||||||
|
|
||||||
|
Domain.release_domains
|
||||||
|
|
||||||
|
whois_record = Whois::Record.find_by(name: @domain.name)
|
||||||
|
|
||||||
|
json = { "name"=>@domain.name,
|
||||||
|
"status"=>["AtAuction"],
|
||||||
|
"disclaimer"=> Setting.registry_whois_disclaimer }
|
||||||
|
assert_equal whois_record.json, json
|
||||||
|
end
|
||||||
|
|
||||||
def test_notifies_registrar
|
def test_notifies_registrar
|
||||||
@domain.update!(delete_date: '2010-07-04')
|
@domain.update!(delete_date: '2010-07-04')
|
||||||
travel_to Time.zone.parse('2010-07-05')
|
travel_to Time.zone.parse('2010-07-05')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue