Back to gallery
Testing

timecop by travisjeffery

View on GitHub
A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call. Maintained by travisjeffery on GitHub, where it has earned 3,425 stars from the community.
travisjeffery
travisjeffery
Maintainer
3.4k stars
228 forks
26 watchers

Install

gem install timecop

Languages

Ruby100%
Last updated6mo ago
LicenseMIT

More Ruby on Rails projects

Ask MadeWithWhat

AI answers may contain mistakes — please double-check important details.