diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 00:11:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 00:11:49 +0300 |
commit | 4fcfdad283a25ee4d1e955954aeceb08d7ffd5f7 (patch) | |
tree | f90b6e55f2cf974ea14c38cd065aa3b65fe3715a /spec/experiments | |
parent | 5a71c032e8e0dcb5593df5c257c88487e332e5e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments')
-rw-r--r-- | spec/experiments/new_project_sast_enabled_experiment_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/experiments/new_project_sast_enabled_experiment_spec.rb b/spec/experiments/new_project_sast_enabled_experiment_spec.rb new file mode 100644 index 00000000000..dcf71bfffd7 --- /dev/null +++ b/spec/experiments/new_project_sast_enabled_experiment_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe NewProjectSastEnabledExperiment do + it "defines the expected behaviors and variants" do + expect(subject.behaviors.keys).to match_array(%w[control candidate free_indicator]) + end + + it "publishes to the database" do + expect(subject).to receive(:publish_to_database) + + subject.publish + end +end |