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
45a71925
Commit
45a71925
authored
Aug 12, 2021
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GLEX testing examples: on_any_instance => on_next_instance
parent
0cf05541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/development/experiment_guide/gitlab_experiment.md
doc/development/experiment_guide/gitlab_experiment.md
+4
-4
No files found.
doc/development/experiment_guide/gitlab_experiment.md
View file @
45a71925
...
...
@@ -492,12 +492,12 @@ expect(subject).to track(:my_event)
subject
.
track
(
:my_event
)
```
You can use the
`on_
any_instance`
chain method to specify that it could happen o
n
any
instance of the experiment. This helps you if you're calling
You can use the
`on_
next_instance`
chain method to specify that it will happe
n
on the next
instance of the experiment. This helps you if you're calling
`experiment(:example).track`
downstream:
```
ruby
expect
(
experiment
(
:example
)).
to
track
(
:my_event
).
on_
any
_instance
expect
(
experiment
(
:example
)).
to
track
(
:my_event
).
on_
next
_instance
experiment
(
:example
).
track
(
:my_event
)
```
...
...
@@ -506,7 +506,7 @@ A full example of the methods you can chain onto the `track` matcher:
```
ruby
expect
(
experiment
(
:example
)).
to
track
(
:my_event
,
value:
1
,
property:
'_property_'
)
.
on_
any
_instance
.
on_
next
_instance
.
with_context
(
foo: :bar
)
.
for
(
:variant_name
)
...
...
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