Notes posted by alext
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/6bbe0049baa059b9f3e5be8db1abbeb9?default=http://apidock.com/images/default_avatar_30.png&size=30)
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).