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
c418d687
Commit
c418d687
authored
Jun 01, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneccesary spec
parent
c754b693
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
+1
-1
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+0
-14
No files found.
spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb
View file @
c418d687
...
...
@@ -188,7 +188,7 @@ describe Gitlab::Ci::Pipeline::Chain::Populate do
expect
(
pipeline
.
stages
.
size
).
to
eq
1
expect
(
pipeline
.
stages
.
first
.
builds
.
size
).
to
eq
1
expect
(
pipeline
.
stages
.
first
.
builds
.
first
.
name
).
to
eq
'rspec'
end
end
end
end
end
...
...
spec/models/ci/pipeline_spec.rb
View file @
c418d687
...
...
@@ -396,20 +396,6 @@ describe Ci::Pipeline, :mailer do
expect
(
seeds
.
size
).
to
eq
1
expect
(
seeds
.
dig
(
0
,
0
,
:name
)).
to
eq
'unit'
end
context
"when pipeline iid is used for 'only' keyword"
do
let
(
:config
)
do
{
rspec:
{
script:
'rspec'
,
only:
{
variables:
[
'$CI_PIPELINE_IID == 2'
]
}
},
prod:
{
script:
'cap prod'
,
only:
{
variables:
[
'$CI_PIPELINE_IID == 1'
]
}
}
}
end
it
'returns stage seeds only when variables expression is truthy'
do
seeds
=
pipeline
.
stage_seeds
expect
(
seeds
.
size
).
to
eq
1
expect
(
seeds
.
dig
(
0
,
0
,
:name
)).
to
eq
'prod'
end
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