2020-09-03 14:08:29 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-10 10:09:11 -05:00
|
|
|
require_relative 'stub_snowplow'
|
|
|
|
|
2020-09-03 14:08:29 -04:00
|
|
|
RSpec.configure do |config|
|
2020-11-09 16:08:48 -05:00
|
|
|
config.include SnowplowHelpers, :snowplow
|
2021-03-10 10:09:11 -05:00
|
|
|
config.include StubSnowplow, :snowplow
|
2020-11-09 16:08:48 -05:00
|
|
|
|
2020-09-03 14:08:29 -04:00
|
|
|
config.before(:each, :snowplow) do
|
2021-03-10 10:09:11 -05:00
|
|
|
stub_snowplow
|
2020-09-03 14:08:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
config.after(:each, :snowplow) do
|
2022-07-04 05:09:31 -04:00
|
|
|
Gitlab::Tracking.send(:tracker).send(:tracker).flush
|
2020-09-03 14:08:29 -04:00
|
|
|
end
|
|
|
|
end
|