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

Version Path
flipper-redis-0.20.4 test/adapters/redis_cache_test.rb
flipper-redis-0.20.3 test/adapters/redis_cache_test.rb
flipper-redis-0.20.2 test/adapters/redis_cache_test.rb
flipper-redis-0.20.1 test/adapters/redis_cache_test.rb
flipper-redis-0.20.0 test/adapters/redis_cache_test.rb
flipper-redis-0.20.0.beta3 test/adapters/redis_cache_test.rb
flipper-redis-0.20.0.beta2 test/adapters/redis_cache_test.rb
flipper-redis-0.20.0.beta1 test/adapters/redis_cache_test.rb
flipper-redis-0.19.1 test/adapters/redis_cache_test.rb
flipper-redis-0.19.0 test/adapters/redis_cache_test.rb
flipper-redis-0.18.0 test/adapters/redis_cache_test.rb
flipper-redis-0.17.2 test/adapters/redis_cache_test.rb
flipper-redis-0.17.1 test/adapters/redis_cache_test.rb