mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Ensure comparison between strings
I have a lot of symbols in my code and so do others. This pull request ensure that testing queus and jobs (just like production) are only ever compared as strings.
This commit is contained in:
parent
df739ca968
commit
d95f22e685
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ module Sidekiq
|
|||
#
|
||||
class << self
|
||||
def [](queue)
|
||||
jobs[queue]
|
||||
jobs[queue.to_s]
|
||||
end
|
||||
|
||||
def jobs
|
||||
|
@ -203,7 +203,7 @@ module Sidekiq
|
|||
|
||||
# Queue for this worker
|
||||
def queue
|
||||
self.sidekiq_options["queue"]
|
||||
self.sidekiq_options["queue"].to_s
|
||||
end
|
||||
|
||||
# Jobs queued for this worker
|
||||
|
|
Loading…
Reference in a new issue