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.