mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Refactor some dispute logic
This commit is contained in:
parent
e7ad4a7c64
commit
be14ede8b6
8 changed files with 42 additions and 48 deletions
|
@ -20,7 +20,7 @@ class DisputeStatusUpdateJobTest < ActiveSupport::TestCase
|
|||
assert_includes whois_record.json['status'], 'disputed'
|
||||
end
|
||||
|
||||
def test_unregistered_domain_whois_data_is_deleted
|
||||
def test_on_expiry_unregistered_domain_is_sent_to_auction
|
||||
dispute = disputes(:active)
|
||||
dispute.update!(starts_at: Time.zone.today - 3.years - 1.day)
|
||||
|
||||
|
@ -30,7 +30,7 @@ class DisputeStatusUpdateJobTest < ActiveSupport::TestCase
|
|||
assert dispute.closed
|
||||
|
||||
whois_record = Whois::Record.find_by(name: dispute.domain_name)
|
||||
assert whois_record.nil?
|
||||
assert_equal ['AtAuction'], whois_record.json['status']
|
||||
end
|
||||
|
||||
def test_registered_domain_whois_data_is_added
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue