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
Léo-Paul Géneau
gitlab-ce
Commits
cae3092f
Commit
cae3092f
authored
Apr 17, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs creating a pipeline stage with implicit index
parent
f0d59b95
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
spec/factories/commit_statuses.rb
spec/factories/commit_statuses.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/create_spec.rb
spec/lib/gitlab/ci/pipeline/chain/create_spec.rb
+1
-1
spec/services/ci/retry_build_service_spec.rb
spec/services/ci/retry_build_service_spec.rb
+3
-1
No files found.
spec/factories/commit_statuses.rb
View file @
cae3092f
...
...
@@ -2,6 +2,7 @@ FactoryBot.define do
factory
:commit_status
,
class:
CommitStatus
do
name
'default'
stage
'test'
stage_idx
0
status
'success'
description
'commit status'
pipeline
factory: :ci_pipeline_with_one_job
...
...
spec/lib/gitlab/ci/pipeline/chain/create_spec.rb
View file @
cae3092f
...
...
@@ -17,7 +17,7 @@ describe Gitlab::Ci::Pipeline::Chain::Create do
context
'when pipeline is ready to be saved'
do
before
do
pipeline
.
stages
.
build
(
name:
'test'
,
project:
project
)
pipeline
.
stages
.
build
(
name:
'test'
,
index:
0
,
project:
project
)
step
.
perform!
end
...
...
spec/services/ci/retry_build_service_spec.rb
View file @
cae3092f
...
...
@@ -6,7 +6,9 @@ describe Ci::RetryBuildService do
set
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:stage
)
do
Ci
::
Stage
.
create!
(
project:
project
,
pipeline:
pipeline
,
name:
'test'
)
create
(
:ci_stage_entity
,
project:
project
,
pipeline:
pipeline
,
name:
'test'
)
end
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
stage_id:
stage
.
id
)
}
...
...
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