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
Jérome Perrin
gitlab-ce
Commits
dd01f3a7
Commit
dd01f3a7
authored
Oct 01, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should use eq because we want orders
parent
f3b02b9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
spec/services/ci/process_pipeline_service_spec.rb
spec/services/ci/process_pipeline_service_spec.rb
+3
-6
No files found.
spec/services/ci/process_pipeline_service_spec.rb
View file @
dd01f3a7
...
...
@@ -245,8 +245,7 @@ describe Ci::ProcessPipelineService, services: true do
end
it
'starts from the second stage'
do
expect
(
builds
.
map
(
&
:status
)).
to
contain_exactly
(
'skipped'
,
'pending'
,
'created'
)
expect
(
builds
.
map
(
&
:status
)).
to
eq
(
%w[skipped pending created]
)
end
end
...
...
@@ -258,14 +257,12 @@ describe Ci::ProcessPipelineService, services: true do
end
it
'skips second stage and continues on third stage'
do
expect
(
builds
.
map
(
&
:status
)).
to
contain_exactly
(
'pending'
,
'created'
,
'created'
)
expect
(
builds
.
map
(
&
:status
)).
to
eq
(
%w[pending created created]
)
builds
.
first
.
success
builds
.
each
(
&
:reload
)
expect
(
builds
.
map
(
&
:status
)).
to
contain_exactly
(
'success'
,
'skipped'
,
'pending'
)
expect
(
builds
.
map
(
&
:status
)).
to
eq
(
%w[success skipped pending]
)
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