diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 00:16:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 00:16:54 +0300 |
commit | a1ee5ac49b801535223f7498762f0c0820165a1a (patch) | |
tree | 8bfde6b9f8ac7872aa368a2f8d6c657583ec809d /spec/experiments | |
parent | 05cde74f482201ed19d89c3c01ebf9b5d26cd4fd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments')
-rw-r--r-- | spec/experiments/application_experiment_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/experiments/application_experiment_spec.rb b/spec/experiments/application_experiment_spec.rb index 5146fe3e752..7c2b5382c42 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -117,7 +117,7 @@ RSpec.describe ApplicationExperiment, :experiment do describe '#publish_to_database' do using RSpec::Parameterized::TableSyntax - let(:publish_to_database) { application_experiment.publish_to_database } + let(:publish_to_database) { ActiveSupport::Deprecation.silence { application_experiment.publish_to_database } } shared_examples 'does not record to the database' do it 'does not create an experiment record' do @@ -358,11 +358,11 @@ RSpec.describe ApplicationExperiment, :experiment do stub_feature_flags(namespaced_stub: true) end - it "returns the first variant name" do + it "returns an assigned name" do application_experiment.try(:variant1) {} application_experiment.try(:variant2) {} - expect(application_experiment.variant.name).to eq('variant1') + expect(application_experiment.variant.name).to eq('variant2') end end end |