Commit 29f3a226 authored by alinamihaila's avatar alinamihaila

Set class instance vars to nil in tests

parent d479f8a1
......@@ -38,6 +38,11 @@ RSpec.shared_context 'stubbed service ping metrics definitions' do
)
end
after do |example|
Gitlab::Usage::Metric.instance_variable_set(:@all, nil)
Gitlab::Usage::MetricDefinition.instance_variable_set(:@all, nil)
end
def metric_attributes(key_path, category, value_type = 'string')
{
'key_path' => key_path,
......
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