Fix DomainCron sending registrant change expired mail

Closes #877
This commit is contained in:
Alex Sherman 2020-11-06 15:58:43 +05:00
parent 5bf2bf0ffe
commit 1b7a6f9005
4 changed files with 10 additions and 7 deletions

View file

@ -72,11 +72,12 @@ class RegistrantChangeMailerTest < ActionMailer::TestCase
email = RegistrantChangeMailer.expired(domain: @domain,
registrar: @domain.registrar,
registrant: @domain.registrant).deliver_now
registrant: @domain.registrant,
send_to: @domain.new_registrant_email).deliver_now
assert_emails 1
assert_equal ['william@inbox.test'], email.to
assert_equal 'Domeeni shop.test registreerija vahetuse taotlus on tühistatud' \
' / shop.test registrant change cancelled', email.subject
end
end
end