require 'time' Time.class_eval { @@advance_one_day = false cattr_accessor :advance_one_day class << Time alias now_old now def now if Time.advance_one_day return Time.at(now_old.to_i + 60 * 60 * 24 + 1) else now_old end end end }