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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-28 18:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-28 18:09:06 +0300
commitc6ee7ef0f577e0155740d022babdc1b2b0e28d87 (patch)
tree8037a9487329eba19009520ba6c8e573beb1d63c /spec/experiments/application_experiment_spec.rb
parent8c2b139cf778cd1d152f06bbc090a4313f975b81 (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.rb6
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)