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
eea81d74
Commit
eea81d74
authored
Nov 06, 2021
by
jejacks0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish up pending spec for published experiments
parent
5eccf5b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
ee/spec/requests/api/experiments_spec.rb
ee/spec/requests/api/experiments_spec.rb
+8
-9
No files found.
ee/spec/requests/api/experiments_spec.rb
View file @
eea81d74
...
...
@@ -160,18 +160,17 @@ RSpec.describe API::Experiments do
end
it
'publishes into a collection of experiments that have been run in the request'
do
pending
'requires gitlab-experiment >= 0.5.4 -- resolved in a follow up MR'
get
api
(
'/experiments'
,
user
)
expect
(
ApplicationExperiment
.
published_experiments
).
to
eq
(
'null_hypothesis'
=>
{
expect
(
RequestStore
).
to
receive
(
:clear!
).
and_wrap_original
do
|
clear
|
expect
(
ApplicationExperiment
.
published_experiments
[
'null_hypothesis'
]).
to
include
(
excluded:
false
,
experiment:
'null_hypothesis'
,
key:
'abc123'
,
variant:
'candidate'
}
)
)
clear
.
call
end
get
api
(
'/experiments'
,
user
)
end
end
end
...
...
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