BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
aafd42c4
Commit
aafd42c4
authored
Sep 14, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
How could I forget this?
parent
811de6ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+10
-1
No files found.
spec/models/ci/pipeline_spec.rb
View file @
aafd42c4
...
...
@@ -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
...
...
@@ -548,9 +549,11 @@ describe Ci::Pipeline, models: true do
context
'with success pipeline'
do
before
do
perform_enqueued_jobs
do
pipeline
.
succe
ss
pipeline
.
succe
ed
end
end
it_behaves_like
'sending a notification'
end
context
'with failed pipeline'
do
...
...
@@ -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
...
...
@@ -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
...
...
@@ -575,6 +582,8 @@ describe Ci::Pipeline, models: true do
pipeline
.
cancel
end
end
it_behaves_like
'not sending any notification'
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment