What\'s the best way to set Time.now for the purpose of testing time-sensitive methods in a unit test?
Time.now
Don't forget that Time is merely a constant that refers to a class object. If you're willing to cause a warning, you can always do
Time
real_time_class = Time Time = FakeTimeClass # run test Time = real_time_class