Sha256: 3b72dc916032c51ca3e0516c6c67b53108939fe0194a00798b8779eb03de158e
Contents?: true
Size: 468 Bytes
Versions: 15
Compression:
Stored size: 468 Bytes
Contents
require 'test_helper' require 'flipper/adapters/memory' require 'flipper/adapters/redis_cache' class DalliTest < 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
15 entries across 15 versions & 1 rubygems