diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-28 18:09:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-28 18:09:06 +0300 |
commit | c6ee7ef0f577e0155740d022babdc1b2b0e28d87 (patch) | |
tree | 8037a9487329eba19009520ba6c8e573beb1d63c /spec/experiments/application_experiment_spec.rb | |
parent | 8c2b139cf778cd1d152f06bbc090a4313f975b81 (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 ece52d37351..2a908a83f5c 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -5,6 +5,12 @@ require 'spec_helper' RSpec.describe ApplicationExperiment do subject { described_class.new(:stub) } + it "naively assumes a 1x1 relationship to feature flags for tests" do + expect(Feature).to receive(:persist_used!).with('stub') + + described_class.new(:stub) + end + describe "publishing results" do it "tracks the assignment" do expect(subject).to receive(:track).with(:assignment) |