Commit 5f7aa407 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Small Concern_spec cleanup

parent e3fe6554
......@@ -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, {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment