spec/support/uses_redis.rb in routemaster-drain-2.3.0 vs spec/support/uses_redis.rb in routemaster-drain-2.4.0
- old
+ new
@@ -5,11 +5,11 @@
module RspecSupportUsesRedis
def uses_redis
uses_dotenv
let(:redis) { Routemaster::Config.drain_redis }
- before { Routemaster::Config.cache_redis.flushdb }
- before { Routemaster::Config.drain_redis.flushdb }
+ before { Routemaster::Config.cache_redis.redis.flushdb }
+ before { Routemaster::Config.drain_redis.redis.flushdb }
end
end
RSpec.configure { |c| c.extend RspecSupportUsesRedis }