1
0
Fork 0
mirror of https://github.com/deanpcmad/sidekiq-limit_fetch.git synced 2022-11-09 13:54:36 -05:00

Fix specs

This commit is contained in:
brainopia 2015-03-07 18:48:16 +03:00
parent 672a92a879
commit 160c26cf17
2 changed files with 5 additions and 0 deletions

View file

@ -12,4 +12,8 @@ module Sidekiq::LimitFetch::Singleton
def instances
@instances.values
end
def reset_instances!
@instances = {}
end
end

View file

@ -7,6 +7,7 @@ Sidekiq.redis = { namespace: ENV['namespace'] }
RSpec.configure do |config|
config.before :each do
Sidekiq::Queue.reset_instances!
Sidekiq.redis do |it|
clean_redis = ->(queue) do
it.pipelined do