Commit ffb8ec48 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Clear memoized snowplow class

This spec mutates @snowplow to store SnowplowMicro which is only
available in development. This clears the memoization after the spec
runs.
parent c777b012
...@@ -13,6 +13,10 @@ RSpec.describe Gitlab::Tracking do ...@@ -13,6 +13,10 @@ RSpec.describe Gitlab::Tracking do
described_class.instance_variable_set("@snowplow", nil) described_class.instance_variable_set("@snowplow", nil)
end end
after do
described_class.instance_variable_set("@snowplow", nil)
end
describe '.options' do describe '.options' do
shared_examples 'delegates to destination' do |klass| shared_examples 'delegates to destination' do |klass|
before do before do
......
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