Files | Admin

Notes:

Release Name: 0.1.0

Notes:
A gem providing simple ways to temporarily override Time.now, Date.today, and DateTime.now.  It provides "time travel" capabilities, making it dead simple to write test time-dependent code.


Changes: === 0.1.0 / 2008-11-09 * Initial Feature Set * Temporarily (or permanently if you prefer) change the concept of Time.now, DateTime.now (if defined), and Date.today (if defined) * Timecop#travel api allows an argument to be passed in as one of: 1) Time instance, 2) DateTime instance, 3) Date instance, 4) individual arguments (year, month, day, hour, minute, second) * Nested calls to Timecop#travel are supported -- each block will maintain it's interpretation of now.