Skip to content

Instantly share code, notes, and snippets.

@phinze
Created January 30, 2013 04:41
Show Gist options
  • Save phinze/4670690 to your computer and use it in GitHub Desktop.
Save phinze/4670690 to your computer and use it in GitHub Desktop.
global timecop
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