From 117911b4ca70e904592241979ea8e29ca656d9a9 Mon Sep 17 00:00:00 2001
From: Jennifer Li <jli@gitlab.com>
Date: Thu, 27 Jul 2023 21:10:17 +0000
Subject: [PATCH] Resolve rubocop violation in time_travel_spec

---
 gems/gitlab-rspec/spec/gitlab/rspec/time_travel_spec.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gems/gitlab-rspec/spec/gitlab/rspec/time_travel_spec.rb b/gems/gitlab-rspec/spec/gitlab/rspec/time_travel_spec.rb
index 79804a99f7076..0dca5d006660e 100644
--- a/gems/gitlab-rspec/spec/gitlab/rspec/time_travel_spec.rb
+++ b/gems/gitlab-rspec/spec/gitlab/rspec/time_travel_spec.rb
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 
 RSpec.describe 'time travel' do
+  # rubocop:disable RSpec/BeforeAll
   before(:all) do
     @original_time_zone = Time.zone
     Time.zone = 'Eastern Time (US & Canada)'
@@ -9,6 +10,7 @@
   after(:all) do
     Time.zone = @original_time_zone
   end
+  # rubocop:enable RSpec/BeforeAll
 
   describe ':freeze_time' do
     it 'freezes time around a spec example', :freeze_time do
-- 
GitLab