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

Fix time specification #141

Merged
merged 1 commit into from
Sep 7, 2017
Merged

Fix time specification #141

merged 1 commit into from
Sep 7, 2017

Conversation

akihikodaki
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jul 27, 2017

Coverage Status

Coverage remained the same at 97.778% when pulling 3397b86 on akihikodaki:patch-2 into 5fdfd54 on philostler:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.778% when pulling 3397b86 on akihikodaki:patch-2 into 5fdfd54 on philostler:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.778% when pulling 3397b86 on akihikodaki:patch-2 into 5fdfd54 on philostler:develop.

@@ -155,9 +155,10 @@ expect(AwesomeJob).to have_enqueued_job('Awesome', true)
#### Testing scheduled jobs
*Use chainable matchers `#at` and `#in`*
```ruby
Awesomejob.perform_at 5.minutes.from_now, 'Awesome', true
time = 5.minutes.from_now
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain how this is a fix for time specification?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is really kind of trivial. Two calls of 5.minutes.from_now may return different value because the current time is changing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes of course, that's great thanks.

@philostler philostler merged commit 807cb13 into wspurgin:develop Sep 7, 2017
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.

3 participants