Flowdock

Notes posted by alext

RSS feed
February 20, 2013
0 thanks

Freezing Time.now

You’d be much better off using the Timecop gem ( rubygems.org/gems/timecop ) than than manually writing monkey-patches to freeze Time.now etc.

It also supports time travel (i.e. changing the time, but allowing the clock to continue running).