2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
require_relative 'stub_snowplow'
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
RSpec.configure do |config|
|
2021-01-29 00:20:46 +05:30
|
|
|
config.include SnowplowHelpers, :snowplow
|
2021-04-17 20:07:23 +05:30
|
|
|
config.include StubSnowplow, :snowplow
|
2021-01-29 00:20:46 +05:30
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
config.before(:each, :snowplow) do
|
2021-04-17 20:07:23 +05:30
|
|
|
stub_snowplow
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
config.after(:each, :snowplow) do
|
2021-01-29 00:20:46 +05:30
|
|
|
Gitlab::Tracking.send(:snowplow).send(:tracker).flush
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
|
|
|
end
|