Skip to content
RubyGems

timecop

A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

railsrubytesttime
github.com/travisjeffery/timecopMITTravis Jeffery, John Trupiano3.4k · 227 forks · 97 contributors
Compare
Compares against 0.9.11 (latest stable)
Latest Stable0.9.11Apr 12, 2026
Latest RC0.3.4.rc2Nov 28, 2009
Release cadenceEvery 8 months
Last releaseApr 12, 2026
Open advisories0
Changelog quality100% curated
CHANGELOG
Security
0.x
STABLE · RCPRE-RELEASEJulOct2024AprJulOct2025AprJulOct2026Apr

46 older or filtered releases not shown.

Breaking changes and a migration checklist for each major version