summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-17 22:17:06 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-29 15:13:04 +0100
commit5f7aa407a85f536d073d4736baa1cabfc0ccb4ff (patch)
treeaae7d1d4d1423ab615d8fab84c38172677e865be /spec
parente3fe65543b9e660ba069899ae9e04fa9850b0f6c (diff)
downloadgitlab-ce-5f7aa407a85f536d073d4736baa1cabfc0ccb4ff.tar.gz
Small Concern_spec cleanup
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/metrics/concern_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/lib/gitlab/metrics/concern_spec.rb b/spec/lib/gitlab/metrics/concern_spec.rb
index 2097396846f..de56ac4c275 100644
--- a/spec/lib/gitlab/metrics/concern_spec.rb
+++ b/spec/lib/gitlab/metrics/concern_spec.rb
@@ -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, {}