Use flushdb with the connection object in redis-namespace API
This commit is contained in:
parent
c0b1ae19c3
commit
b69890a3fa
1 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@ RSpec.configure do |config|
|
|||
end
|
||||
|
||||
config.after(:each, :sidekiq, :redis) do
|
||||
Sidekiq.redis { |redis| redis.flushdb }
|
||||
Sidekiq.redis do |connection|
|
||||
connection.redis.flushdb
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue