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
Tatuya Kamada
gitlab-ce
Commits
57253f04
Commit
57253f04
authored
Mar 04, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs for detailed statuses for manual actions
parent
17faa8a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
app/models/concerns/has_status.rb
app/models/concerns/has_status.rb
+2
-2
spec/factories/ci/builds.rb
spec/factories/ci/builds.rb
+0
-1
spec/lib/gitlab/ci/status/build/factory_spec.rb
spec/lib/gitlab/ci/status/build/factory_spec.rb
+2
-2
No files found.
app/models/concerns/has_status.rb
View file @
57253f04
...
...
@@ -4,8 +4,8 @@ module HasStatus
DEFAULT_STATUS
=
'created'
.
freeze
BLOCKED_STATUS
=
'manual'
.
freeze
AVAILABLE_STATUSES
=
%w[created pending running success failed canceled skipped manual]
.
freeze
STARTED_STATUSES
=
%w[running success failed skipped]
.
freeze
ACTIVE_STATUSES
=
%w[pending running
manual
]
.
freeze
STARTED_STATUSES
=
%w[running success failed skipped
manual
]
.
freeze
ACTIVE_STATUSES
=
%w[pending running]
.
freeze
COMPLETED_STATUSES
=
%w[success failed canceled skipped]
.
freeze
ORDERED_STATUSES
=
%w[manual failed pending running canceled success skipped]
.
freeze
...
...
spec/factories/ci/builds.rb
View file @
57253f04
...
...
@@ -76,7 +76,6 @@ FactoryGirl.define do
end
trait
:playable
do
skipped
manual
end
...
...
spec/lib/gitlab/ci/status/build/factory_spec.rb
View file @
57253f04
...
...
@@ -192,7 +192,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let
(
:build
)
{
create
(
:ci_build
,
:playable
)
}
it
'matches correct core status'
do
expect
(
factory
.
core_status
).
to
be_a
Gitlab
::
Ci
::
Status
::
Skipped
expect
(
factory
.
core_status
).
to
be_a
Gitlab
::
Ci
::
Status
::
Manual
end
it
'matches correct extended statuses'
do
...
...
@@ -218,7 +218,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let
(
:build
)
{
create
(
:ci_build
,
:playable
,
:teardown_environment
)
}
it
'matches correct core status'
do
expect
(
factory
.
core_status
).
to
be_a
Gitlab
::
Ci
::
Status
::
Skipped
expect
(
factory
.
core_status
).
to
be_a
Gitlab
::
Ci
::
Status
::
Manual
end
it
'matches correct extended statuses'
do
...
...
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