module ActiveSupport::Testing::TimeHelpers
def travel_back
travel_back
Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00
travel_to Time.zone.local(2004, 11, 24, 01, 04, 44)
Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00
+travel+, +travel_to+, and +freeze_time+.
Returns the current time back to its original state, by removing the stubs added by
def travel_back simple_stubs.unstub_all! end