diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-15 18:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-15 18:09:07 +0300 |
commit | f5c3f32975addd56fe8659f1c346d0e56f0b23d9 (patch) | |
tree | 9d6594793e656c52341a98d22d882d96d240433f /spec/experiments | |
parent | c8b7a349bc50cff1e8ef18204042978476527b0b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments')
-rw-r--r-- | spec/experiments/application_experiment_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/experiments/application_experiment_spec.rb b/spec/experiments/application_experiment_spec.rb index 0a46155b56d..2481ee5a806 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -58,6 +58,15 @@ RSpec.describe ApplicationExperiment, :experiment do end describe "publishing results" do + it "doesn't track or push data to the client if we shouldn't track", :snowplow do + allow(subject).to receive(:should_track?).and_return(false) + expect(Gon).not_to receive(:push) + + subject.publish(:action) + + expect_no_snowplow_event + end + it "tracks the assignment" do expect(subject).to receive(:track).with(:assignment) |