mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Notify registrar about domain deletion when auction feature is on
Fixes #1196
This commit is contained in:
parent
8188def3a1
commit
5d5c2ed925
2 changed files with 12 additions and 0 deletions
|
@ -58,6 +58,15 @@ class DomainReleasableAuctionableTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_notifies_registrar
|
||||
@domain.update!(delete_date: '2010-07-04')
|
||||
travel_to Time.zone.parse('2010-07-05')
|
||||
|
||||
assert_difference -> { @domain.registrar.notifications.count } do
|
||||
Domain.release_domains
|
||||
end
|
||||
end
|
||||
|
||||
def test_ignores_domains_with_delete_date_in_the_future
|
||||
@domain.update!(delete_date: '2010-07-06')
|
||||
travel_to Time.zone.parse('2010-07-05')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue