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
cc4a0d9a
Commit
cc4a0d9a
authored
May 06, 2019
by
Grzegorz Bizon
Committed by
Filipa Lacerda
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs checking serialization of a stage builds
parent
de24df98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/serializers/pipeline_entity_spec.rb
spec/serializers/pipeline_entity_spec.rb
+12
-0
No files found.
spec/serializers/pipeline_entity_spec.rb
View file @
cc4a0d9a
...
...
@@ -64,6 +64,12 @@ describe PipelineEntity do
create
(
:ci_build
,
:failed
,
pipeline:
pipeline
)
end
it
'does not serialize stage builds'
do
subject
.
with_indifferent_access
.
dig
(
:details
,
:stages
,
0
).
tap
do
|
stage
|
expect
(
stage
).
not_to
include
(
:groups
,
:latest_statuses
,
:retries
)
end
end
context
'user has ability to retry pipeline'
do
before
do
project
.
add_developer
(
user
)
...
...
@@ -92,6 +98,12 @@ describe PipelineEntity do
create
(
:ci_build
,
:pending
,
pipeline:
pipeline
)
end
it
'does not serialize stage builds'
do
subject
.
with_indifferent_access
.
dig
(
:details
,
:stages
,
0
).
tap
do
|
stage
|
expect
(
stage
).
not_to
include
(
:groups
,
:latest_statuses
,
:retries
)
end
end
context
'user has ability to cancel pipeline'
do
before
do
project
.
add_developer
(
user
)
...
...
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