summaryrefslogtreecommitdiff
path: root/spec/experiments
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-15 21:11:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-15 21:11:12 +0000
commita7aff3e0e4deb15c0902e0f948eb300ba77f3e47 (patch)
treec294fb9c39d5619fb3cac6f4a8d520deb8403dca /spec/experiments
parent27d1ed4ddff6c2649544a968c2842140272d9c9d (diff)
downloadgitlab-ce-a7aff3e0e4deb15c0902e0f948eb300ba77f3e47.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments')
-rw-r--r--spec/experiments/security_reports_mr_widget_prompt_experiment_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/experiments/security_reports_mr_widget_prompt_experiment_spec.rb b/spec/experiments/security_reports_mr_widget_prompt_experiment_spec.rb
new file mode 100644
index 00000000000..4328ff12d42
--- /dev/null
+++ b/spec/experiments/security_reports_mr_widget_prompt_experiment_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe SecurityReportsMrWidgetPromptExperiment do
+ it "defines a control and candidate" do
+ expect(subject.behaviors.keys).to match_array(%w[control candidate])
+ end
+
+ it "publishes to the database" do
+ expect(subject).to receive(:publish_to_database)
+
+ subject.publish
+ end
+end