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
6f0b5800
Commit
6f0b5800
authored
Aug 08, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty test coverage badge class and specs
parent
20f9b8be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
lib/gitlab/badge/coverage.rb
lib/gitlab/badge/coverage.rb
+17
-0
spec/lib/gitlab/badge/coverage_spec.rb
spec/lib/gitlab/badge/coverage_spec.rb
+19
-0
No files found.
lib/gitlab/badge/coverage.rb
0 → 100644
View file @
6f0b5800
module
Gitlab
module
Badge
##
# Test coverage badge
#
class
Coverage
def
initialize
(
project
,
ref
,
job
=
nil
)
@project
=
project
@ref
=
ref
@job
=
job
end
def
coverage
end
end
end
end
spec/lib/gitlab/badge/coverage_spec.rb
0 → 100644
View file @
6f0b5800
require
'spec_helper'
describe
Gitlab
::
Badge
::
Coverage
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
.
id
,
ref:
'master'
)
end
let
(
:badge
)
{
described_class
.
new
(
project
,
'master'
)
}
context
'builds exist'
do
end
context
'build does not exist'
do
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