From 225ab2a7db76862a5517992e029547a0bedfed38 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Fri, 23 Sep 2016 20:27:20 +0800 Subject: [PATCH] Cleanup emails between tests --- spec/services/ci/send_pipeline_notification_service_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/services/ci/send_pipeline_notification_service_spec.rb b/spec/services/ci/send_pipeline_notification_service_spec.rb index aa5c14e10f9..e7e1c4f297a 100644 --- a/spec/services/ci/send_pipeline_notification_service_spec.rb +++ b/spec/services/ci/send_pipeline_notification_service_spec.rb @@ -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 -- GitLab