Created
November 4, 2009 12:06
-
-
Save danielmorrison/225991 to your computer and use it in GitHub Desktop.
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
# just add a gem dependency for Timecop or require it yourself | |
Given 'the time is $time' do |time| | |
Timecop.freeze Time.parse(time) | |
end | |
When '$time pass' do |time| | |
Timecop.travel future_time(time) | |
Given 'delayed jobs are run' # we use delayed jobs and have some that get scheduled in the future. | |
end | |
When 'time stands still' do | |
Timecop.freeze Time.now | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's future_time?