vendor/gems/iridesco-time-warp-1.0.3/lib/time_warp.rb
##
# Time warp to the specified time for the duration of the passed block.
Time warp to the specified time for the duration of the passed block.
Time warp to the specified time for the duration of the passed block .
def pretend_now_is(*args)
        begin
          Time.testing_offset = Time.now - time_from(*args)
          yield
        ensure
          Time.testing_offset = 0
        end
      end
def pretend_now_is ( * args ) begin Time . testing_offset = Time . now - time_from ( * args ) yield ensure Time . testing_offset = 0 end end
Time warp to the specified time for the duration of the passed block.
Time warp to the specified time for the duration of the passed block .
args
<not_specific>