Created
July 5, 2013 13:30
-
-
Save pewniak747/5934534 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
config.around(:each) do |example| | |
Timecop.freeze if freeze_time? | |
example.run | |
Timecop.return if freeze_time? | |
end | |
def freeze_time? | |
example.metadata[:freeze_time] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment