Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0fcc2387
Commit
0fcc2387
authored
Jan 06, 2022
by
jejacks0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds new unchecked free indicator variant method
- This fixes an issue with assigning this variant.
parent
4c938b8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/experiments/new_project_sast_enabled_experiment.rb
app/experiments/new_project_sast_enabled_experiment.rb
+3
-0
spec/experiments/new_project_sast_enabled_experiment_spec.rb
spec/experiments/new_project_sast_enabled_experiment_spec.rb
+6
-1
No files found.
app/experiments/new_project_sast_enabled_experiment.rb
View file @
0fcc2387
...
...
@@ -15,4 +15,7 @@ class NewProjectSastEnabledExperiment < ApplicationExperiment # rubocop:disable
def
unchecked_candidate_behavior
end
def
unchecked_free_indicator_behavior
end
end
spec/experiments/new_project_sast_enabled_experiment_spec.rb
View file @
0fcc2387
...
...
@@ -4,7 +4,12 @@ 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 unchecked_candidate]
)
expect
(
subject
.
variant_names
).
to
match_array
([
:candidate
,
:free_indicator
,
:unchecked_candidate
,
:unchecked_free_indicator
])
end
it
"publishes to the database"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment