diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-12 03:10:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-12 03:10:00 +0300 |
commit | 81373fe07e0afe94e4d63a37c51a80c10132aeac (patch) | |
tree | 6f8fcfd6422d8416a9b292bef4fb03d9a3c7dd32 /spec/experiments/application_experiment_spec.rb | |
parent | 68b6fd7fb2edaaae86a4ee8df02b7f9783672050 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments/application_experiment_spec.rb')
-rw-r--r-- | spec/experiments/application_experiment_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/experiments/application_experiment_spec.rb b/spec/experiments/application_experiment_spec.rb index 2d2b911749b..22c436e4159 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -19,6 +19,12 @@ RSpec.describe ApplicationExperiment, :experiment do allow(subject).to receive(:enabled?).and_return(true) end + it "naively assumes a 1x1 relationship to feature flags for tests" do + expect(Feature).to receive(:persist_used!).with('namespaced_stub') + + described_class.new('namespaced/stub') + end + it "doesn't raise an exception without a defined control" do # because we have a default behavior defined |