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 79804a99f70766cefc49c45bd1d0d127843a99aa..0dca5d006660ec91b0bf100bdc1970fd8af5a969 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