Sha256: 0affb8482a530051cf1af0bac2504ebe150bead05076ef9942f72e4a37887045
Contents?: true
Size: 439 Bytes
Versions: 13
Compression:
Stored size: 439 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) end def teardown @cache.flushdb end end
Version data entries
13 entries across 13 versions & 1 rubygems