FICHA · MANJARO

ruby-timecop

A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code

  • Library
  • LIBRARY
  • Dependency only
official+codex · reviewed · May 29, 2026 description in en

Description

Controls time in Ruby tests by freezing or shifting the clock. It is useful for testing expiration, scheduling, date calculations, cache lifetimes, and time-dependent behavior.

Time manipulation can leak between tests and hide real clock issues. Always restore time and test time zones, daylight-saving changes, and monotonic-clock behavior separately.

Permissions

Permissions not analysed for this source yet.