Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
c77b1cb0
Commit
c77b1cb0
authored
Mar 18, 2017
by
Rydkin Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add `does not cancel HEAD pipeline` spec
parent
c81ef304
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+7
-1
No files found.
spec/services/ci/create_pipeline_service_spec.rb
View file @
c77b1cb0
...
...
@@ -47,7 +47,13 @@ describe Ci::CreatePipelineService, services: true do
project
.
update
(
auto_cancel_pending_pipelines:
'enabled'
)
end
it_behaves_like
'a pending pipeline'
it
'does not cancel HEAD pipeline'
do
pipeline
previous_pipeline
=
pipeline_on_previous_commit
expect
(
pipeline
.
reload
)
.
to
have_attributes
(
status:
'pending'
,
auto_canceled_by:
nil
)
end
it
'auto cancel pending non-HEAD pipelines'
do
pending_pipeline
=
pipeline_on_previous_commit
...
...
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