You can use the `:freeze_time` and `:time_travel_to` RSpec metadata tag helpers to help reduce the amount of
boilerplate code needed to wrap entire specs with the [`ActiveSupport::Testing::TimeHelpers`](https://api.rubyonrails.org/v6.0.3.1/classes/ActiveSupport/Testing/TimeHelpers.html)
methods.
```ruby
describe'specs which require time to be frozen',:freeze_timedo
it'freezes time'do
right_now=Time.now
expect(Time.now).toeq(right_now)
end
end
describe'specs which require time to be frozen to a specific date and/or time',time_travel_to: '2020-02-02 10:30:45 -0700'do
[Under the hood](https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/support/time_travel.rb), these helpers use the `around(:each)` hook and the block syntax of the