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
Léo-Paul Géneau
gitlab-ce
Commits
5f7aa407
Commit
5f7aa407
authored
Jan 17, 2018
by
Pawel Chojnacki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small Concern_spec cleanup
parent
e3fe6554
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
spec/lib/gitlab/metrics/concern_spec.rb
spec/lib/gitlab/metrics/concern_spec.rb
+1
-3
No files found.
spec/lib/gitlab/metrics/concern_spec.rb
View file @
5f7aa407
...
...
@@ -3,8 +3,6 @@ require 'spec_helper'
describe
Gitlab
::
Metrics
::
Concern
do
subject
{
Class
.
new
{
include
Gitlab
::
Metrics
::
Concern
}
}
let
(
:null_metric
)
{
Gitlab
::
Metrics
::
NullMetric
.
new
}
shared_context
'metric'
do
|
metric_type
,
*
args
|
let
(
:docstring
)
{
'description'
}
let
(
:metric
)
{
:sample_metric
}
...
...
@@ -55,6 +53,7 @@ describe Gitlab::Metrics::Concern do
describe
"#fetch_
#{
metric_type
}
"
do
let
(
:fetch_method
)
{
"fetch_
#{
metric_type
}
"
.
to_sym
}
let
(
:null_metric
)
{
Gitlab
::
Metrics
::
NullMetric
.
new
}
context
"when
#{
metric_type
}
fetched first time"
do
it
'initializes counter metric'
do
...
...
@@ -92,7 +91,6 @@ describe Gitlab::Metrics::Concern do
end
end
end
end
include_examples
'metric'
,
:counter
,
{}
...
...
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