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
Jérome Perrin
gitlab-ce
Commits
49f9ab90
Commit
49f9ab90
authored
Mar 11, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for spec/lib/gitlab/ci/status
parent
a5b96417
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
0 deletions
+36
-0
lib/gitlab/ci/status/manual.rb
lib/gitlab/ci/status/manual.rb
+4
-0
spec/lib/gitlab/ci/status/canceled_spec.rb
spec/lib/gitlab/ci/status/canceled_spec.rb
+4
-0
spec/lib/gitlab/ci/status/created_spec.rb
spec/lib/gitlab/ci/status/created_spec.rb
+4
-0
spec/lib/gitlab/ci/status/failed_spec.rb
spec/lib/gitlab/ci/status/failed_spec.rb
+4
-0
spec/lib/gitlab/ci/status/manual_spec.rb
spec/lib/gitlab/ci/status/manual_spec.rb
+4
-0
spec/lib/gitlab/ci/status/pending_spec.rb
spec/lib/gitlab/ci/status/pending_spec.rb
+4
-0
spec/lib/gitlab/ci/status/running_spec.rb
spec/lib/gitlab/ci/status/running_spec.rb
+4
-0
spec/lib/gitlab/ci/status/skipped_spec.rb
spec/lib/gitlab/ci/status/skipped_spec.rb
+4
-0
spec/lib/gitlab/ci/status/success_spec.rb
spec/lib/gitlab/ci/status/success_spec.rb
+4
-0
No files found.
lib/gitlab/ci/status/manual.rb
View file @
49f9ab90
...
...
@@ -13,6 +13,10 @@ module Gitlab
def
icon
'icon_status_manual'
end
def
favicon
'favicon_status_manual'
end
end
end
end
...
...
spec/lib/gitlab/ci/status/canceled_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Canceled do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_canceled'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_canceled'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'canceled'
}
end
...
...
spec/lib/gitlab/ci/status/created_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Created do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_created'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_created'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'created'
}
end
...
...
spec/lib/gitlab/ci/status/failed_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Failed do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_failed'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_failed'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'failed'
}
end
...
...
spec/lib/gitlab/ci/status/manual_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Manual do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_manual'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_manual'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'manual'
}
end
...
...
spec/lib/gitlab/ci/status/pending_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Pending do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_pending'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_pending'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'pending'
}
end
...
...
spec/lib/gitlab/ci/status/running_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Running do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_running'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_running'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'running'
}
end
...
...
spec/lib/gitlab/ci/status/skipped_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Skipped do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_skipped'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_skipped'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'skipped'
}
end
...
...
spec/lib/gitlab/ci/status/success_spec.rb
View file @
49f9ab90
...
...
@@ -17,6 +17,10 @@ describe Gitlab::Ci::Status::Success do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_success'
}
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_success'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'success'
}
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