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 a meta data option to use timecop #2

Open
acant opened this issue Jul 29, 2015 · 0 comments
Open

Add a meta data option to use timecop #2

acant opened this issue Jul 29, 2015 · 0 comments

Comments

@acant
Copy link
Contributor

acant commented Jul 29, 2015

Something like this:

describe '#method', timecopped: DateTime.current do
end

This would set the :now variable and wrap subject execution with timecopped.

This is similar to a feature which is currently in PR#119 on the timecop gem.

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

No branches or pull requests

1 participant