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
d6509274
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
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
20 deletions
+57
-20
spec/lib/gitlab/ci/status/build/canceled_spec.rb
spec/lib/gitlab/ci/status/build/canceled_spec.rb
+11
-0
spec/lib/gitlab/ci/status/build/created_spec.rb
spec/lib/gitlab/ci/status/build/created_spec.rb
+11
-0
spec/lib/gitlab/ci/status/build/manual_spec.rb
spec/lib/gitlab/ci/status/build/manual_spec.rb
+13
-0
spec/lib/gitlab/ci/status/build/pending_spec.rb
spec/lib/gitlab/ci/status/build/pending_spec.rb
+11
-0
spec/lib/gitlab/ci/status/build/skipped_spec.rb
spec/lib/gitlab/ci/status/build/skipped_spec.rb
+11
-0
spec/lib/gitlab/ci/status/canceled_spec.rb
spec/lib/gitlab/ci/status/canceled_spec.rb
+0
-4
spec/lib/gitlab/ci/status/created_spec.rb
spec/lib/gitlab/ci/status/created_spec.rb
+0
-4
spec/lib/gitlab/ci/status/manual_spec.rb
spec/lib/gitlab/ci/status/manual_spec.rb
+0
-4
spec/lib/gitlab/ci/status/pending_spec.rb
spec/lib/gitlab/ci/status/pending_spec.rb
+0
-4
spec/lib/gitlab/ci/status/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
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Canceled do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_canceled'
}
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_canceled'
}
end
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'canceled'
}
it
{
expect
(
subject
.
group
).
to
eq
'canceled'
}
end
end
...
...
spec/lib/gitlab/ci/status/created_spec.rb
View file @
d6509274
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Created do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_created'
}
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_created'
}
end
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'created'
}
it
{
expect
(
subject
.
group
).
to
eq
'created'
}
end
end
...
...
spec/lib/gitlab/ci/status/manual_spec.rb
View file @
d6509274
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Manual do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_manual'
}
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_manual'
}
end
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'manual'
}
it
{
expect
(
subject
.
group
).
to
eq
'manual'
}
end
end
...
...
spec/lib/gitlab/ci/status/pending_spec.rb
View file @
d6509274
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Pending do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_pending'
}
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_pending'
}
end
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
,
:content
)
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'pending'
}
it
{
expect
(
subject
.
group
).
to
eq
'pending'
}
end
end
...
...
spec/lib/gitlab/ci/status/skipped_spec.rb
View file @
d6509274
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do
...
@@ -21,10 +21,6 @@ describe Gitlab::Ci::Status::Skipped do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_skipped'
}
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_skipped'
}
end
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
include
(
:image
,
:size
,
:title
)
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'skipped'
}
it
{
expect
(
subject
.
group
).
to
eq
'skipped'
}
end
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