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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b5c28699
Commit
b5c28699
authored
Mar 18, 2017
by
Rydkin Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rubocop
parent
effcbaf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+5
-5
No files found.
spec/services/ci/create_pipeline_service_spec.rb
View file @
b5c28699
...
@@ -39,17 +39,17 @@ describe Ci::CreatePipelineService, services: true do
...
@@ -39,17 +39,17 @@ describe Ci::CreatePipelineService, services: true do
)
)
end
end
def
previous_commit_sha_from_ref
(
ref
)
project
.
commit
(
ref
).
parent
.
sha
end
before
do
before
do
project
.
update
(
auto_cancel_pending_pipelines:
'enabled'
)
project
.
update
(
auto_cancel_pending_pipelines:
'enabled'
)
end
end
def
previous_commit_sha_from_ref
(
ref
)
project
.
commit
(
ref
).
parent
.
sha
end
it
'does not cancel HEAD pipeline'
do
it
'does not cancel HEAD pipeline'
do
pipeline
pipeline
p
revious_pipeline
=
p
ipeline_on_previous_commit
pipeline_on_previous_commit
expect
(
pipeline
.
reload
)
expect
(
pipeline
.
reload
)
.
to
have_attributes
(
status:
'pending'
,
auto_canceled_by_id:
nil
)
.
to
have_attributes
(
status:
'pending'
,
auto_canceled_by_id:
nil
)
...
...
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