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
d6509274
Unverified
Commit
d6509274
authored
Mar 28, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for build empty state statuses
parent
b57fcbe6
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
20 deletions
+57
-20
canceled_spec.rb
spec/lib/gitlab/ci/status/build/canceled_spec.rb
+11
-0
created_spec.rb
spec/lib/gitlab/ci/status/build/created_spec.rb
+11
-0
manual_spec.rb
spec/lib/gitlab/ci/status/build/manual_spec.rb
+13
-0
pending_spec.rb
spec/lib/gitlab/ci/status/build/pending_spec.rb
+11
-0
skipped_spec.rb
spec/lib/gitlab/ci/status/build/skipped_spec.rb
+11
-0
canceled_spec.rb
spec/lib/gitlab/ci/status/canceled_spec.rb
+0
-4
created_spec.rb
spec/lib/gitlab/ci/status/created_spec.rb
+0
-4
manual_spec.rb
spec/lib/gitlab/ci/status/manual_spec.rb
+0
-4
pending_spec.rb
spec/lib/gitlab/ci/status/pending_spec.rb
+0
-4
skipped_spec.rb
spec/lib/gitlab/ci/status/skipped_spec.rb
+0
-4
No files found.
spec/lib/gitlab/ci/status/build/canceled_spec.rb
0 → 100644
View file @
d6509274
require
'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Build
::
Canceled
do
subject
do
described_class
.
new
(
double
(
'subject'
))
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
end
spec/lib/gitlab/ci/status/build/created_spec.rb
0 → 100644
View file @
d6509274
require
'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Build
::
Created
do
subject
do
described_class
.
new
(
double
(
'subject'
))
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
end
spec/lib/gitlab/ci/status/build/manual_spec.rb
0 → 100644
View file @
d6509274
require
'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Build
::
Manual
do
subject
do
user
=
create
(
:user
)
build
=
create
(
:ci_build
,
:manual
)
described_class
.
new
(
Gitlab
::
Ci
::
Status
::
Core
.
new
(
build
,
user
))
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
,
:action_path
,
:action_method
)
}
end
end
spec/lib/gitlab/ci/status/build/pending_spec.rb
0 → 100644
View file @
d6509274
require
'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Build
::
Pending
do
subject
do
described_class
.
new
(
double
(
'subject'
))
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
end
spec/lib/gitlab/ci/status/build/skipped_spec.rb
0 → 100644
View file @
d6509274
require
'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Build
::
Skipped
do
subject
do
described_class
.
new
(
double
(
'subject'
))
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
end
spec/lib/gitlab/ci/status/canceled_spec.rb
View file @
d6509274
...
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Canceled do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_canceled'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'canceled'
}
end
...
...
spec/lib/gitlab/ci/status/created_spec.rb
View file @
d6509274
...
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_created'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'created'
}
end
...
...
spec/lib/gitlab/ci/status/manual_spec.rb
View file @
d6509274
...
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_manual'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'manual'
}
end
...
...
spec/lib/gitlab/ci/status/pending_spec.rb
View file @
d6509274
...
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_pending'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'pending'
}
end
...
...
spec/lib/gitlab/ci/status/skipped_spec.rb
View file @
d6509274
...
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_skipped'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'skipped'
}
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