Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
b5d9714ae3
commit
5bb035ed6d
1 changed files with 4 additions and 4 deletions
|
@ -492,12 +492,12 @@ expect(subject).to track(:my_event)
|
||||||
subject.track(:my_event)
|
subject.track(:my_event)
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use the `on_any_instance` chain method to specify that it could happen on
|
You can use the `on_next_instance` chain method to specify that it will happen
|
||||||
any instance of the experiment. This helps you if you're calling
|
on the next instance of the experiment. This helps you if you're calling
|
||||||
`experiment(:example).track` downstream:
|
`experiment(:example).track` downstream:
|
||||||
|
|
||||||
```ruby
|
```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)
|
experiment(:example).track(:my_event)
|
||||||
```
|
```
|
||||||
|
@ -506,7 +506,7 @@ A full example of the methods you can chain onto the `track` matcher:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
expect(experiment(:example)).to track(:my_event, value: 1, property: '_property_')
|
expect(experiment(:example)).to track(:my_event, value: 1, property: '_property_')
|
||||||
.on_any_instance
|
.on_next_instance
|
||||||
.with_context(foo: :bar)
|
.with_context(foo: :bar)
|
||||||
.for(:variant_name)
|
.for(:variant_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue