2021-10-07 17:11:49 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe NewProjectSastEnabledExperiment do
|
|
|
|
it "defines the expected behaviors and variants" do
|
2021-12-08 16:10:18 -05:00
|
|
|
expect(subject.behaviors.keys).to match_array(%w[control candidate free_indicator unchecked_candidate])
|
2021-10-07 17:11:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it "publishes to the database" do
|
|
|
|
expect(subject).to receive(:publish_to_database)
|
|
|
|
|
|
|
|
subject.publish
|
|
|
|
end
|
|
|
|
end
|