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

Version Path
flipper-redis-1.3.2 test/adapters/redis_cache_test.rb
flipper-redis-1.3.1 test/adapters/redis_cache_test.rb
flipper-redis-1.3.0 test/adapters/redis_cache_test.rb
flipper-redis-1.3.0.pre test/adapters/redis_cache_test.rb
flipper-redis-1.2.2 test/adapters/redis_cache_test.rb
flipper-redis-1.2.1 test/adapters/redis_cache_test.rb
flipper-redis-1.2.0 test/adapters/redis_cache_test.rb
flipper-redis-1.1.2 test/adapters/redis_cache_test.rb
flipper-redis-1.1.1 test/adapters/redis_cache_test.rb
flipper-redis-1.1.0 test/adapters/redis_cache_test.rb
flipper-redis-1.0.0 test/adapters/redis_cache_test.rb
flipper-redis-1.0.0.pre test/adapters/redis_cache_test.rb
flipper-redis-0.28.3 test/adapters/redis_cache_test.rb
flipper-redis-0.28.2 test/adapters/redis_cache_test.rb
flipper-redis-0.28.1 test/adapters/redis_cache_test.rb
flipper-redis-0.28.0 test/adapters/redis_cache_test.rb
flipper-redis-0.27.1 test/adapters/redis_cache_test.rb
flipper-redis-0.27.0 test/adapters/redis_cache_test.rb
flipper-redis-0.26.2 test/adapters/redis_cache_test.rb
flipper-redis-0.26.0 test/adapters/redis_cache_test.rb