blob: 7844b85963d6ea5e61287f4f2e9f1c5851871e7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
# Require the provided spec helper and matchers.
require 'gitlab/experiment/rspec'
# This is a temporary fix until we have a larger discussion around the
# challenges raised in https://gitlab.com/gitlab-org/gitlab/-/issues/300104
class ApplicationExperiment < Gitlab::Experiment # rubocop:disable Gitlab/NamespacedClass
def initialize(*args)
super
Feature.persist_used!(feature_flag_name)
end
end
# Disable all caching for experiments in tests.
Gitlab::Experiment::Configuration.cache = nil
|