Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/experimentation/experiment_spec.rb')
-rw-r--r--spec/lib/gitlab/experimentation/experiment_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/gitlab/experimentation/experiment_spec.rb b/spec/lib/gitlab/experimentation/experiment_spec.rb
index 008e6699597..7b1d1763010 100644
--- a/spec/lib/gitlab/experimentation/experiment_spec.rb
+++ b/spec/lib/gitlab/experimentation/experiment_spec.rb
@@ -14,10 +14,8 @@ RSpec.describe Gitlab::Experimentation::Experiment do
end
before do
- skip_feature_flags_yaml_validation
- skip_default_enabled_yaml_check
- feature = double('FeatureFlag', percentage_of_time_value: percentage, enabled?: true)
- allow(Feature).to receive(:get).with(:experiment_key_experiment_percentage).and_return(feature)
+ feature = double('FeatureFlag', percentage_of_time_value: percentage )
+ expect(Feature).to receive(:get).with(:experiment_key_experiment_percentage).and_return(feature)
end
subject(:experiment) { described_class.new(:experiment_key, **params) }