Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/concerns/redis_tracking_spec.rb')
-rw-r--r--spec/controllers/concerns/redis_tracking_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/concerns/redis_tracking_spec.rb b/spec/controllers/concerns/redis_tracking_spec.rb
index 4077f4f5cce..178684ae2d0 100644
--- a/spec/controllers/concerns/redis_tracking_spec.rb
+++ b/spec/controllers/concerns/redis_tracking_spec.rb
@@ -3,6 +3,8 @@
require "spec_helper"
RSpec.describe RedisTracking do
+ include TrackingHelpers
+
let(:user) { create(:user) }
controller(ApplicationController) do
@@ -60,7 +62,7 @@ RSpec.describe RedisTracking do
end
it 'tracks the event if DNT is not enabled' do
- request.headers['DNT'] = '0'
+ stub_do_not_track('0')
expect_tracking
@@ -68,7 +70,7 @@ RSpec.describe RedisTracking do
end
it 'does not track the event if DNT is enabled' do
- request.headers['DNT'] = '1'
+ stub_do_not_track('1')
expect_no_tracking