2021-11-18 22:05:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe NewProjectSastEnabledExperiment do
|
|
|
|
it "defines the expected behaviors and variants" do
|
2022-03-02 08:16:31 +05:30
|
|
|
expect(subject.variant_names).to match_array([
|
|
|
|
:candidate,
|
|
|
|
:free_indicator,
|
|
|
|
:unchecked_candidate,
|
|
|
|
:unchecked_free_indicator
|
|
|
|
])
|
2021-11-18 22:05:49 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
it "publishes to the database" do
|
|
|
|
expect(subject).to receive(:publish_to_database)
|
|
|
|
|
|
|
|
subject.publish
|
|
|
|
end
|
|
|
|
end
|