From 6a3871f1d23012d3b3c4e9531288ca8e2f3072b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Ferrandis?= Date: Wed, 28 Feb 2024 17:03:48 +0100 Subject: [PATCH] See https://github.com/resque/redis-namespace/issues/56 --- spec/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 3aeec41022..9875861e6f 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -111,7 +111,7 @@ ActionMailer::Base.deliveries.clear FactoryBot.rewind_sequences Rails.cache.clear - Redis.with_connection(&:flushall) # clears custom redis usages + Redis.with_connection { |redis| redis.del(redis.keys("*")) } # clears custom redis usages Warden.test_reset! WebMock.reset! end