Sha256: 9b47f87b66212c079ffd053116c9e0043254ba7cc9064488455ff1aff3ff0b26
Contents?: true
Size: 526 Bytes
Versions: 37
Compression:
Stored size: 526 Bytes
Contents
require 'test_helper' require 'flipper/adapters/redis_cache' class RedisCacheTest < MiniTest::Test prepend Flipper::Test::SharedAdapterTests def setup url = ENV.fetch('REDIS_URL', 'redis://localhost:6379') @cache = Redis.new(url: url).tap(&:flushdb) memory_adapter = Flipper::Adapters::Memory.new @adapter = Flipper::Adapters::RedisCache.new(memory_adapter, @cache) rescue Redis::CannotConnectError ENV['CI'] ? raise : skip('Reids not available') end def teardown @cache.flushdb end end
Version data entries
37 entries across 37 versions & 1 rubygems