diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/lib/product_analytics | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/lib/product_analytics')
-rw-r--r-- | spec/lib/product_analytics/event_params_spec.rb | 7 | ||||
-rw-r--r-- | spec/lib/product_analytics/tracker_spec.rb | 8 |
2 files changed, 14 insertions, 1 deletions
diff --git a/spec/lib/product_analytics/event_params_spec.rb b/spec/lib/product_analytics/event_params_spec.rb index d6c098599d6..e560fd10dfd 100644 --- a/spec/lib/product_analytics/event_params_spec.rb +++ b/spec/lib/product_analytics/event_params_spec.rb @@ -23,7 +23,12 @@ RSpec.describe ProductAnalytics::EventParams do br_lang: 'en-US', br_cookies: true, os_timezone: 'America/Los_Angeles', - doc_charset: 'UTF-8' + doc_charset: 'UTF-8', + se_category: 'category', + se_action: 'action', + se_label: 'label', + se_property: 'property', + se_value: 12.34 } expect(subject).to include(expected_params) diff --git a/spec/lib/product_analytics/tracker_spec.rb b/spec/lib/product_analytics/tracker_spec.rb new file mode 100644 index 00000000000..d5e85e6e1cd --- /dev/null +++ b/spec/lib/product_analytics/tracker_spec.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +require "spec_helper" + +RSpec.describe ProductAnalytics::Tracker do + it { expect(described_class::URL).to eq('http://localhost/-/sp.js') } + it { expect(described_class::COLLECTOR_URL).to eq('localhost/-/collector') } +end |