diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-05 00:16:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-05 00:16:06 +0300 |
commit | 44bb0760bd78154bb74b8d923535c679caef5e05 (patch) | |
tree | a94cbdbab09988112e779abcd9bc7a1a26e7b212 /spec/experiments | |
parent | 17a58755f31fcca5f6f42a4f7de1bbf1934dd038 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments')
-rw-r--r-- | spec/experiments/application_experiment_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/experiments/application_experiment_spec.rb b/spec/experiments/application_experiment_spec.rb index 7c2b5382c42..8e06c06a5d1 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -359,8 +359,8 @@ RSpec.describe ApplicationExperiment, :experiment do end it "returns an assigned name" do - application_experiment.try(:variant1) {} - application_experiment.try(:variant2) {} + application_experiment.variant(:variant1) {} + application_experiment.variant(:variant2) {} expect(application_experiment.variant.name).to eq('variant2') end @@ -395,8 +395,8 @@ RSpec.describe ApplicationExperiment, :experiment do cache.clear(key: application_experiment.name) - application_experiment.use { } # setup the control - application_experiment.try { } # setup the candidate + application_experiment.control { } + application_experiment.candidate { } end it "caches the variant determined by the variant resolver" do |