mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
remove test
This commit is contained in:
parent
a625388df4
commit
6d657426e5
1 changed files with 1 additions and 15 deletions
|
@ -4,6 +4,7 @@ class BaseTest < ActiveSupport::TestCase
|
||||||
setup do
|
setup do
|
||||||
@domain = domains(:shop)
|
@domain = domains(:shop)
|
||||||
@domain_airport = domains(:airport)
|
@domain_airport = domains(:airport)
|
||||||
|
travel_to Time.zone.parse('2010-07-05 00:30:00')
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_hold_domains_force_delete_email
|
def test_hold_domains_force_delete_email
|
||||||
|
@ -58,21 +59,6 @@ class BaseTest < ActiveSupport::TestCase
|
||||||
Setting.redemption_grace_period.days).to_date
|
Setting.redemption_grace_period.days).to_date
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_send_poll_message_about_45_days_to_registrar
|
|
||||||
refute @domain_airport.force_delete_scheduled?
|
|
||||||
@domain_airport.update!(valid_to: Time.zone.now + 3.years - 1.month - 4.days)
|
|
||||||
@domain_airport.reload
|
|
||||||
prepare_contact
|
|
||||||
|
|
||||||
contact = @domain_airport.admin_contacts.first
|
|
||||||
|
|
||||||
assert_difference -> { @domain_airport.registrar.notifications.count } do
|
|
||||||
Domains::ForceDeleteEmail::Base.run(email: contact.email)
|
|
||||||
end
|
|
||||||
|
|
||||||
@domain_airport.reload
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def prepare_contact
|
def prepare_contact
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue