Fix DomainExpirationEmailJob spec

#180
This commit is contained in:
Artur Beljajev 2016-11-14 04:12:36 +02:00
parent 907d5cc402
commit 54df5f146b

View file

@ -17,7 +17,7 @@ RSpec.describe DomainExpirationEmailJob do
it 'sends email notification' do it 'sends email notification' do
expect(DomainMailer).to receive(:expiration).with(domain: domain).and_return(message) expect(DomainMailer).to receive(:expiration).with(domain: domain).and_return(message)
expect(message).to receive(:deliver!) expect(message).to receive(:deliver)
described_class.enqueue(domain_id: 1) described_class.enqueue(domain_id: 1)
end end
end end