Created
January 30, 2013 04:41
-
-
Save phinze/4670690 to your computer and use it in GitHub Desktop.
global timecop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after_initialize do | |
# Set Time.now to September 1, 2008 10:05:00 AM (at this instant), but allow it to move forward | |
t = Time.local(2008, 9, 1, 10, 5, 0) | |
Timecop.travel(t) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment