Skip to content

Fix RSpec/TimecopFreeze offenses

Max Orefice requested to merge morefice/fix-timecop-freeze into master

Ref: #214432 (closed)

What does this MR do and why?

This MR fixes the RSpec/TimecopFreeze remaining offenses except for qa/spec/support/repeater_spec.rb which I could not fix it entirely yet.

Why are we doing this?

Rails introduced a TimeHelpers so we don't need this gem anymore and we will remove it in a follow up MR.

The API is slightly different and we cannot pass an argument to freeze_time which is why we use travel_to a lot in this MR.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Max Orefice

Merge request reports