mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update code samples to be valid
This commit is contained in:
parent
df755bbeef
commit
785fcd503a
2 changed files with 4 additions and 4 deletions
|
@ -29,9 +29,9 @@ gem 'redis-namespace'
|
||||||
assertions made against the Worker class still work as expected.
|
assertions made against the Worker class still work as expected.
|
||||||
```ruby
|
```ruby
|
||||||
assert_equal 0, Sidekiq::Queues["default"].size
|
assert_equal 0, Sidekiq::Queues["default"].size
|
||||||
HardWorker.perform_async(:something)
|
HardWorker.perform_async("log")
|
||||||
assert_equal 1, Sidekiq::Queues["default"].size
|
assert_equal 1, Sidekiq::Queues["default"].size
|
||||||
assert_equal :something, Sidekiq::Queues["default"].first['args'][0]
|
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
||||||
Sidekiq::Queues.clear_all
|
Sidekiq::Queues.clear_all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
[#2659, brandonhilkert]
|
[#2659, brandonhilkert]
|
||||||
```ruby
|
```ruby
|
||||||
assert_equal 0, Sidekiq::Queues["default"].size
|
assert_equal 0, Sidekiq::Queues["default"].size
|
||||||
HardWorker.perform_async(:something)
|
HardWorker.perform_async("log")
|
||||||
assert_equal 1, Sidekiq::Queues["default"].size
|
assert_equal 1, Sidekiq::Queues["default"].size
|
||||||
assert_equal :something, Sidekiq::Queues["default"].first['args'][0]
|
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
||||||
Sidekiq::Queues.clear_all
|
Sidekiq::Queues.clear_all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue