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
0b5e1392
Commit
0b5e1392
authored
Mar 20, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend compound status for manual actions specs
parent
f441b95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
spec/models/concerns/has_status_spec.rb
spec/models/concerns/has_status_spec.rb
+11
-1
No files found.
spec/models/concerns/has_status_spec.rb
View file @
0b5e1392
...
...
@@ -110,7 +110,7 @@ describe HasStatus do
it
{
is_expected
.
to
eq
'running'
}
end
context
'when
pipeline is in transition between stages
'
do
context
'when
one status finished and second is still created
'
do
let!
(
:statuses
)
do
[
create
(
type
,
status: :success
),
create
(
type
,
status: :created
)]
end
...
...
@@ -118,6 +118,16 @@ describe HasStatus do
it
{
is_expected
.
to
eq
'running'
}
end
context
'when there is a manual status before created status'
do
let!
(
:statuses
)
do
[
create
(
type
,
status: :success
),
create
(
type
,
status: :manual
,
allow_failure:
false
),
create
(
type
,
status: :created
)]
end
it
{
is_expected
.
to
eq
'manual'
}
end
context
'when one status is a blocking manual action'
do
let!
(
:statuses
)
do
[
create
(
type
,
status: :failed
),
...
...
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