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