diff options
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) |