Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_project_sast_enabled_experiment_spec.rb « experiments « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 041e5dfa4697516facc56f153261d3065451c207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe NewProjectSastEnabledExperiment do
  it "defines the expected behaviors and variants" do
    expect(subject.variant_names).to match_array([
      :candidate,
      :free_indicator,
      :unchecked_candidate,
      :unchecked_free_indicator
    ])
  end

  it "publishes to the database" do
    expect(subject).to receive(:publish_to_database)

    subject.publish
  end
end