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
2cf1f0b3
Commit
2cf1f0b3
authored
Dec 15, 2020
by
jejacks0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable caching for all experiments in tests
parent
93883dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
spec/controllers/projects/issues_controller_spec.rb
spec/controllers/projects/issues_controller_spec.rb
+0
-5
spec/support/gitlab_experiment.rb
spec/support/gitlab_experiment.rb
+4
-0
No files found.
spec/controllers/projects/issues_controller_spec.rb
View file @
2cf1f0b3
...
@@ -64,11 +64,6 @@ RSpec.describe Projects::IssuesController do
...
@@ -64,11 +64,6 @@ RSpec.describe Projects::IssuesController do
end
end
describe
'the null hypothesis experiment'
,
:snowplow
do
describe
'the null hypothesis experiment'
,
:snowplow
do
before
do
# disable experiment caching
allow
(
Gitlab
::
Experiment
::
Configuration
).
to
receive
(
:cache
).
and_return
(
nil
)
end
it
'defines the expected before actions'
do
it
'defines the expected before actions'
do
expect
(
controller
).
to
use_before_action
(
:run_null_hypothesis_experiment
)
expect
(
controller
).
to
use_before_action
(
:run_null_hypothesis_experiment
)
end
end
...
...
spec/support/gitlab_experiment.rb
0 → 100644
View file @
2cf1f0b3
# frozen_string_literal: true
# Disable all caching for experiments in tests.
Gitlab
::
Experiment
::
Configuration
.
cache
=
nil
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