Created
September 3, 2021 17:16
-
-
Save jb08/39ab4db86233d6abc516d7f1a5e3e9cc to your computer and use it in GitHub Desktop.
requires_time_freezing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def requires_time_freezing(time = Time.now) | |
before { Timecop.freeze(time) } | |
after { Timecop.return } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment