Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in_realtime method #45

Closed
wants to merge 2 commits into from

Conversation

stevebrewer
Copy link

Easy way to execute some code in the real time without having to call Timecop.reset and then re-freezing / traveling when you're done. My particular use case was testing posting to S3, which will verify the timestamp that's part of the signature it's too far off from realtime.

@travisjeffery
Copy link
Owner

Hey, I thought about it and decided to modify Timecop#return to temporarily return for the given block if given one, otherwise if not given a block it behaves as before and returns for all subsequent lines. I'd like to improve the documentation of everything either tonight or tomorrow night and then I'll ship the next gem version. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants