From f34a7193d448bd715766ce8f84469fa8b5b40c94 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Wed, 17 Jun 2015 09:56:53 +0300 Subject: [PATCH] Turn of pending delete notification email delivery #2557 --- app/models/epp/domain.rb | 1 + spec/mailers/domain_mailer_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index 6cb5fb7fd..0eae3db45 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -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 diff --git a/spec/mailers/domain_mailer_spec.rb b/spec/mailers/domain_mailer_spec.rb index 55024616f..75c0640cd 100644 --- a/spec/mailers/domain_mailer_spec.rb +++ b/spec/mailers/domain_mailer_spec.rb @@ -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)