Skip to content
Snippets Groups Projects
Commit aafd42c4 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

How could I forget this?

parent 811de6ac
No related branches found
No related tags found
1 merge request!6342Integrate CI emails into notification system
Loading
Loading
@@ -528,6 +528,7 @@ describe Ci::Pipeline, models: true do
before do
ActionMailer::Base.deliveries.clear
 
pipeline.update(user: create(:user))
pipeline.enqueue
pipeline.run
end
Loading
Loading
@@ -548,9 +549,11 @@ describe Ci::Pipeline, models: true do
context 'with success pipeline' do
before do
perform_enqueued_jobs do
pipeline.success
pipeline.succeed
end
end
it_behaves_like 'sending a notification'
end
 
context 'with failed pipeline' do
Loading
Loading
@@ -559,6 +562,8 @@ describe Ci::Pipeline, models: true do
pipeline.drop
end
end
it_behaves_like 'sending a notification'
end
 
context 'with skipped pipeline' do
Loading
Loading
@@ -567,6 +572,8 @@ describe Ci::Pipeline, models: true do
pipeline.skip
end
end
it_behaves_like 'not sending any notification'
end
 
context 'with cancelled pipeline' do
Loading
Loading
@@ -575,6 +582,8 @@ describe Ci::Pipeline, models: true do
pipeline.cancel
end
end
it_behaves_like 'not sending any notification'
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment