Turn of pending delete notification email delivery #2557

This commit is contained in:
Priit Tark 2015-06-17 09:56:53 +03:00
parent 19c553244c
commit f34a7193d4
2 changed files with 2 additions and 1 deletions

View file

@ -404,6 +404,7 @@ class Epp::Domain < Domain
if frame.css('delete').attr('verified').to_s.downcase != 'yes'
registrant_verification_asked!(frame.to_s, user_id)
self.deliver_emails = true # turn on email delivery for epp
pending_delete!
manage_automatic_statuses
true # aka 1001 pending_delete

View file

@ -82,7 +82,7 @@ describe DomainMailer do
end
end
describe 'email changed notification' do
describe 'email pending delete notification' do
before :all do
@registrant = Fabricate(:registrant, email: 'test@example.com')
@domain = Fabricate(:domain, name: 'delete-pending.ee', registrant: @registrant)