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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f056bb1d
Commit
f056bb1d
authored
Oct 12, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve deployment entity spec
parent
4f46fadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/serializers/deployment_entity_spec.rb
spec/serializers/deployment_entity_spec.rb
+4
-4
No files found.
spec/serializers/deployment_entity_spec.rb
View file @
f056bb1d
...
...
@@ -29,16 +29,16 @@ describe DeploymentEntity do
let
(
:build
)
{
create
(
:ci_build
,
:success
,
pipeline:
pipeline
)
}
let
(
:deployment
)
{
create
(
:deployment
,
deployable:
build
)
}
context
'when
deployment has another
action'
do
let
(
:other_build
)
{
create
(
:ci_build
,
:schedul
ed
,
pipeline:
pipeline
,
name:
'other build'
)
}
context
'when
the same pipeline has a scheduled
action'
do
let
(
:other_build
)
{
create
(
:ci_build
,
:schedul
able
,
:success
,
pipeline:
pipeline
,
name:
'other build'
)
}
let!
(
:other_deployment
)
{
create
(
:deployment
,
deployable:
other_build
)
}
it
'returns other actions'
do
it
'returns other
scheduled
actions'
do
expect
(
subject
[
:scheduled_actions
][
0
][
:name
]).
to
eq
'other build'
end
end
context
'when
deployment does not have other actions
'
do
context
'when
the same pipeline does not have a scheduled action
'
do
it
'does not return other actions'
do
expect
(
subject
[
:scheduled_actions
]).
to
be_empty
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