mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' of github.com:mperham/sidekiq
This commit is contained in:
commit
15afd56e23
1 changed files with 6 additions and 5 deletions
11
Changes.md
11
Changes.md
|
@ -3,11 +3,12 @@
|
|||
|
||||
- Update sidekiq/testing to support new scheduled jobs API:
|
||||
|
||||
require 'sidekiq/testing'
|
||||
DirectWorker.perform_in(10.seconds, 1, 2)
|
||||
assert_equal 1, DirectWorker.jobs.size
|
||||
assert_in_delta 10.seconds.from_now.to_f, DirectWorker.jobs.last['at'], 0.01
|
||||
|
||||
```ruby
|
||||
require 'sidekiq/testing'
|
||||
DirectWorker.perform_in(10.seconds, 1, 2)
|
||||
assert_equal 1, DirectWorker.jobs.size
|
||||
assert_in_delta 10.seconds.from_now.to_f, DirectWorker.jobs.last['at'], 0.01
|
||||
```
|
||||
|
||||
2.0.0
|
||||
-----------
|
||||
|
|
Loading…
Reference in a new issue