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

Assume that :now is the variable/time that should be used #1

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

Assume that :now is the variable/time that should be used #1

acant opened this issue Jul 29, 2015 · 0 comments

Comments

@acant
Copy link
Contributor

acant commented Jul 29, 2015

This involves a few things:

  • set now at the beginning of each test (e.g., let(:now) { DateTime.current } )
  • let timecopped use :now by default (e.g., subject { timecopped { do_the_thing } } )
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