Log domain name in mailer jobs

#186
This commit is contained in:
Artur Beljajev 2016-11-25 11:59:41 +02:00
parent 9ad84d78aa
commit 4f13258352
10 changed files with 17 additions and 11 deletions

View file

@ -9,6 +9,7 @@ RSpec.describe DomainDeleteConfirmEmailJob do
expect(Domain).to receive(:find).and_return(domain)
allow(domain).to receive_messages(
id: 1,
name: 'test.com',
registrant_email: 'registrant@test.com',
registrar: 'registrar',
registrant: 'registrant')
@ -20,7 +21,7 @@ RSpec.describe DomainDeleteConfirmEmailJob do
end
it 'creates log record' do
log_message = 'Send DomainDeleteMailer#confirm email for domain #1 to registrant@test.com'
log_message = 'Send DomainDeleteMailer#confirm email for domain test.com (#1) to registrant@test.com'
allow(DomainDeleteMailer).to receive(:confirm).and_return(message)
allow(message).to receive(:deliver_now)