Timecop is a Ruby gem that provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
Timecop is a Ruby gem that provides "time travel" and "time freezing" capabilities, to ease testing time-dependent code. It provides a unified method to mock Time.now
, Date.today
, and DateTime.now
in a single call.