Cleanup emails between tests

This commit is contained in:
Lin Jen-Shin 2016-09-23 20:27:20 +08:00
parent 61d650fed7
commit 225ab2a7db

View file

@ -10,6 +10,10 @@ describe Ci::SendPipelineNotificationService, services: true do
subject{ described_class.new(pipeline) }
describe '#execute' do
before do
reset_delivered_emails!
end
shared_examples 'sending emails' do
it 'sends an email to pipeline user' do
perform_enqueued_jobs do