BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
has_status.rb
app/models/concerns/has_status.rb
+2
-2
builds.rb
spec/factories/ci/builds.rb
+0
-1
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
...
@@ -4,8 +4,8 @@ module HasStatus
DEFAULT_STATUS
=
'created'
.
freeze
DEFAULT_STATUS
=
'created'
.
freeze
BLOCKED_STATUS
=
'manual'
.
freeze
BLOCKED_STATUS
=
'manual'
.
freeze
AVAILABLE_STATUSES
=
%w[created pending running success failed canceled skipped manual]
.
freeze
AVAILABLE_STATUSES
=
%w[created pending running success failed canceled skipped manual]
.
freeze
STARTED_STATUSES
=
%w[running success failed skipped]
.
freeze
STARTED_STATUSES
=
%w[running success failed skipped
manual
]
.
freeze
ACTIVE_STATUSES
=
%w[pending running
manual
]
.
freeze
ACTIVE_STATUSES
=
%w[pending running]
.
freeze
COMPLETED_STATUSES
=
%w[success failed canceled skipped]
.
freeze
COMPLETED_STATUSES
=
%w[success failed canceled skipped]
.
freeze
ORDERED_STATUSES
=
%w[manual failed pending running canceled success 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
...
@@ -76,7 +76,6 @@ FactoryGirl.define do
end
end
trait
:playable
do
trait
:playable
do
skipped
manual
manual
end
end
...
...
spec/lib/gitlab/ci/status/build/factory_spec.rb
View file @
57253f04
...
@@ -192,7 +192,7 @@ describe Gitlab::Ci::Status::Build::Factory do
...
@@ -192,7 +192,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let
(
:build
)
{
create
(
:ci_build
,
:playable
)
}
let
(
:build
)
{
create
(
:ci_build
,
:playable
)
}
it
'matches correct core status'
do
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
end
it
'matches correct extended statuses'
do
it
'matches correct extended statuses'
do
...
@@ -218,7 +218,7 @@ describe Gitlab::Ci::Status::Build::Factory do
...
@@ -218,7 +218,7 @@ describe Gitlab::Ci::Status::Build::Factory do
let
(
:build
)
{
create
(
:ci_build
,
:playable
,
:teardown_environment
)
}
let
(
:build
)
{
create
(
:ci_build
,
:playable
,
:teardown_environment
)
}
it
'matches correct core status'
do
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
end
it
'matches correct extended statuses'
do
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