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
53fcede5
Commit
53fcede5
authored
Mar 03, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses in pipeline processing specs
parent
ac5bd3b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
spec/services/ci/process_pipeline_service_spec.rb
spec/services/ci/process_pipeline_service_spec.rb
+32
-32
No files found.
spec/services/ci/process_pipeline_service_spec.rb
View file @
53fcede5
...
...
@@ -61,7 +61,7 @@ describe Ci::ProcessPipelineService, '#execute', :services do
fail_running_or_pending
expect
(
builds_statuses
).
to
eq
[
'failed'
,
'pending'
]
expect
(
builds_statuses
).
to
eq
%w(failed pending)
end
end
...
...
@@ -84,22 +84,22 @@ describe Ci::ProcessPipelineService, '#execute', :services do
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test)
expect
(
builds_statuses
).
to
eq
%w(success pending)
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'deploy'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test deploy)
expect
(
builds_statuses
).
to
eq
%w(success success pending)
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'deploy'
,
'cleanup'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test deploy cleanup)
expect
(
builds_statuses
).
to
eq
%w(success success success pending)
succeed_running_or_pending
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'success'
,
'success'
]
expect
(
builds_statuses
).
to
eq
%w(success success success success)
expect
(
pipeline
.
reload
.
status
).
to
eq
'success'
end
end
...
...
@@ -112,22 +112,22 @@ describe Ci::ProcessPipelineService, '#execute', :services do
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test)
expect
(
builds_statuses
).
to
eq
%w(success pending)
fail_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'test_failure'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test test_failure)
expect
(
builds_statuses
).
to
eq
%w(success failed pending)
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'test_failure'
,
'cleanup'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test test_failure cleanup)
expect
(
builds_statuses
).
to
eq
%w(success failed success pending)
succeed_running_or_pending
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'success'
,
'success'
]
expect
(
builds_statuses
).
to
eq
%w(success failed success success)
expect
(
pipeline
.
reload
.
status
).
to
eq
'failed'
end
end
...
...
@@ -140,23 +140,23 @@ describe Ci::ProcessPipelineService, '#execute', :services do
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test)
expect
(
builds_statuses
).
to
eq
%w(success pending)
fail_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'test_failure'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test test_failure)
expect
(
builds_statuses
).
to
eq
%w(success failed pending)
fail_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'test_failure'
,
'cleanup'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'failed'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test test_failure cleanup)
expect
(
builds_statuses
).
to
eq
%w(success failed failed pending)
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'test_failure'
,
'cleanup'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'failed'
,
'failed'
,
'success'
]
expect
(
builds_names
).
to
eq
%w(build test test_failure cleanup)
expect
(
builds_statuses
).
to
eq
%w(success failed failed success)
expect
(
pipeline
.
reload
.
status
).
to
eq
(
'failed'
)
end
end
...
...
@@ -169,22 +169,22 @@ describe Ci::ProcessPipelineService, '#execute', :services do
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test)
expect
(
builds_statuses
).
to
eq
%w(success pending)
succeed_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'deploy'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test deploy)
expect
(
builds_statuses
).
to
eq
%w(success success pending)
fail_running_or_pending
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
,
'deploy'
,
'cleanup'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'failed'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test deploy cleanup)
expect
(
builds_statuses
).
to
eq
%w(success success failed pending)
succeed_running_or_pending
expect
(
builds_statuses
).
to
eq
[
'success'
,
'success'
,
'failed'
,
'success'
]
expect
(
builds_statuses
).
to
eq
%w(success success failed success)
expect
(
pipeline
.
reload
.
status
).
to
eq
(
'failed'
)
end
end
...
...
@@ -198,8 +198,8 @@ describe Ci::ProcessPipelineService, '#execute', :services do
succeed_running_or_pending
expect
(
builds
.
running_or_pending
).
not_to
be_empty
expect
(
builds_names
).
to
eq
[
'build'
,
'test'
]
expect
(
builds_statuses
).
to
eq
[
'success'
,
'pending'
]
expect
(
builds_names
).
to
eq
%w(build test)
expect
(
builds_statuses
).
to
eq
%w(success pending)
cancel_running_or_pending
...
...
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