Sha256: baedfd7b0006df7db045730ab8359fb1a4bb330166f4c557fbb207ed176264c9
Contents?: true
Size: 568 Bytes
Versions: 38
Compression:
Stored size: 568 Bytes
Contents
require 'test_helper' require 'flipper/adapters/dalli' require 'logger' class DalliTest < MiniTest::Test prepend Flipper::Test::SharedAdapterTests def setup url = ENV.fetch('MEMCACHED_URL', 'localhost:11211') @cache = Dalli::Client.new(url) Dalli.logger = Logger.new('/dev/null') @cache.flush memory_adapter = Flipper::Adapters::Memory.new @adapter = Flipper::Adapters::Dalli.new(memory_adapter, @cache) rescue Dalli::NetworkError ENV['CI'] ? raise : skip('Memcached not available') end def teardown @cache.flush end end
Version data entries
38 entries across 38 versions & 1 rubygems