What\'s the best way to set Time.now for the purpose of testing time-sensitive methods in a unit test?
Time.now
Do the time-warp
time-warp is a library that does what you want. It gives you a method that takes a time and a block and anything that happens in the block uses the faked time.
pretend_now_is(2000,"jan",1,0) do Time.now end